Trait os_str_generic::OsStrGenericExt
[−]
[src]
pub trait OsStrGenericExt { fn elements(&self) -> OsStrElements; fn starts_with<T: AsRef<OsStr>>(&self, prefix: T) -> bool { ... } fn without_prefix<T: AsRef<OsStr>>(&self, prefix: T) -> Option<OsString> { ... } }
Extentions to OsStr that allow working with them without filling code with #[cfg(...)]
Required Methods
fn elements(&self) -> OsStrElements
Iterate over the smallest elements of an OsStr. Element meaning is dependent on specific OS.
Provided Methods
fn starts_with<T: AsRef<OsStr>>(&self, prefix: T) -> bool
fn without_prefix<T: AsRef<OsStr>>(&self, prefix: T) -> Option<OsString>
Implementors
impl OsStrGenericExt for OsStr