Enum fslock::EitherOsStr[][src]

pub enum EitherOsStr<'str> {
    Borrowed(&'str OsStr),
    Owned(OsString),
}
Expand description

Either borrowed or owned allocation of an OS-native string.

Variants

Borrowed(&'str OsStr)

Tuple Fields

0: &'str OsStr

Borrowed allocation.

Owned(OsString)

Tuple Fields

Owned allocation.

Trait Implementations

Performs the conversion.

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Converts with possible allocation error.

Converts with possible allocation error.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.