pub fn split_once(&self, separator: u8) -> Option<(&LinuxOsStr, &LinuxOsStr)> {
        self.iter().position(|&b| b == separator).map(|idx| {
            (
                Self::from_bytes(&self[..idx]),
                Self::from_bytes(&self[idx + 1..]),
            )
        })
    }
// ~Copies of a bunch of string APIs since [u8] doesn't have them (reasonably)
~Copies of a bunch of string APIs since [u8] doesn't have them (reasonably)
~Copies of a bunch of string APIs since [ u8 ] doesn ' t have them ( reasonably )
pub fn split_once(&self, separator: u8) -> Option<(&LinuxOsStr, &LinuxOsStr)> {
        self.iter().position(|&b| b == separator).map(|idx| {
            (
                Self::from_bytes(&self[..idx]),
                Self::from_bytes(&self[idx + 1..]),
            )
        })
    }
pub fn split_once ( & self , separator : u8 ) -> Option < ( & LinuxOsStr , & LinuxOsStr ) > { self . iter ( ) . position ( | & b | b == separator ) . map ( | idx | { ( Self :: from_bytes ( & self [ .. idx ] ) , Self :: from_bytes ( & self [ idx + 1 .. ] ) , ) } ) }
~Copies of a bunch of string APIs since [u8] doesn't have them (reasonably)
~Copies of a bunch of string APIs since [ u8 ] doesn ' t have them ( reasonably )
&self
separator
u8