Enum fslock::EitherOsStr
source · [−]Expand description
Either borrowed or owned allocation of an OS-native string.
Variants
Borrowed(&'str OsStr)
Borrowed allocation.
Owned(OsString)
Owned allocation.
Trait Implementations
sourceimpl<'str> AsRef<OsStr> for EitherOsStr<'str>
impl<'str> AsRef<OsStr> for EitherOsStr<'str>
sourceimpl<'str> Debug for EitherOsStr<'str>
impl<'str> Debug for EitherOsStr<'str>
sourceimpl<'str> Deref for EitherOsStr<'str>
impl<'str> Deref for EitherOsStr<'str>
sourceimpl<'str> IntoOsString for EitherOsStr<'str>
impl<'str> IntoOsString for EitherOsStr<'str>
sourcefn into_os_string(self) -> Result<OsString, Error>
fn into_os_string(self) -> Result<OsString, Error>
Converts with possible allocation error.
sourceimpl<'str> ToOsStr for EitherOsStr<'str>
impl<'str> ToOsStr for EitherOsStr<'str>
sourcefn to_os_str(&self) -> Result<EitherOsStr<'_>, Error>
fn to_os_str(&self) -> Result<EitherOsStr<'_>, Error>
Converts with possible allocation error.
Auto Trait Implementations
impl<'str> RefUnwindSafe for EitherOsStr<'str>
impl<'str> !Send for EitherOsStr<'str>
impl<'str> !Sync for EitherOsStr<'str>
impl<'str> Unpin for EitherOsStr<'str>
impl<'str> UnwindSafe for EitherOsStr<'str>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more