[][src]Enum gio::DataStreamNewlineType

#[non_exhaustive]pub enum DataStreamNewlineType {
    Lf,
    Cr,
    CrLf,
    Any,
    // some variants omitted
}

DataStreamNewlineType is used when checking for or setting the line endings for a given file.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Lf

Selects "LF" line endings, common on most modern UNIX platforms.

Cr

Selects "CR" line endings.

CrLf

Selects "CR, LF" line ending, common on Microsoft Windows.

Any

Automatically try to handle any line ending type.

Trait Implementations

impl Clone for DataStreamNewlineType[src]

impl Copy for DataStreamNewlineType[src]

impl Debug for DataStreamNewlineType[src]

impl Display for DataStreamNewlineType[src]

impl Eq for DataStreamNewlineType[src]

impl<'a> FromValue<'a> for DataStreamNewlineType[src]

impl<'a> FromValueOptional<'a> for DataStreamNewlineType[src]

impl Hash for DataStreamNewlineType[src]

impl Ord for DataStreamNewlineType[src]

impl PartialEq<DataStreamNewlineType> for DataStreamNewlineType[src]

impl PartialOrd<DataStreamNewlineType> for DataStreamNewlineType[src]

impl SetValue for DataStreamNewlineType[src]

impl StaticType for DataStreamNewlineType[src]

impl StructuralEq for DataStreamNewlineType[src]

impl StructuralPartialEq for DataStreamNewlineType[src]

Auto Trait Implementations

impl RefUnwindSafe for DataStreamNewlineType

impl Send for DataStreamNewlineType

impl Sync for DataStreamNewlineType

impl Unpin for DataStreamNewlineType

impl UnwindSafe for DataStreamNewlineType

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.