Struct uu_env::native_int_str::NativeStr
source · pub struct NativeStr<'a> { /* private fields */ }
Implementations§
source§impl<'a> NativeStr<'a>
impl<'a> NativeStr<'a>
pub fn new(str: &'a OsStr) -> Self
pub fn native(&self) -> Cow<'a, NativeIntStr>
pub fn into_native(self) -> Cow<'a, NativeIntStr>
pub fn contains(&self, x: &char) -> Option<bool>
pub fn slice(&self, from: usize, to: usize) -> Cow<'a, OsStr>
pub fn split_once( &self, pred: &char, ) -> Option<(Cow<'a, OsStr>, Cow<'a, OsStr>)>
pub fn split_at(&self, pos: usize) -> (Cow<'a, OsStr>, Cow<'a, OsStr>)
pub fn strip_prefix(&self, prefix: &OsStr) -> Option<Cow<'a, OsStr>>
pub fn strip_prefix_native( &self, prefix: &OsStr, ) -> Option<Cow<'a, NativeIntStr>>
Auto Trait Implementations§
impl<'a> Freeze for NativeStr<'a>
impl<'a> RefUnwindSafe for NativeStr<'a>
impl<'a> Send for NativeStr<'a>
impl<'a> Sync for NativeStr<'a>
impl<'a> Unpin for NativeStr<'a>
impl<'a> UnwindSafe for NativeStr<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more