Enum file_mode::SetMode[][src]

pub enum SetMode<'s> {
    Value(Mode),
    Str(&'s str),
}

Types that convert to this type can be used with set_mode methods.

Variants

Value(Mode)
Str(&'s str)

Trait Implementations

impl<'s> From<&'s str> for SetMode<'s>[src]

impl<'s, M: Into<Mode>> From<M> for SetMode<'s>[src]

Auto Trait Implementations

impl<'s> RefUnwindSafe for SetMode<'s>

impl<'s> Send for SetMode<'s>

impl<'s> Sync for SetMode<'s>

impl<'s> Unpin for SetMode<'s>

impl<'s> UnwindSafe for SetMode<'s>

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, 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.