pub trait ToUnixString {
    // Required method
    fn to_unix_string(&self) -> Result<UnixString, Error>;
}

Required Methods§

source

fn to_unix_string(&self) -> Result<UnixString, Error>

Turn this into a UnixString

Errors

If this string can’t be converted this will throw an error The only real reasons are if you have multiple null bytes or no access to an allocator

Implementations on Foreign Types§

source§

impl ToUnixString for &[u8]

source§

impl<T> ToUnixString for &Twhere T: ToUnixString,

source§

impl ToUnixString for String

source§

impl ToUnixString for &mut str

source§

impl<T> ToUnixString for &mut Twhere T: ToUnixString,

source§

impl ToUnixString for &str

source§

impl ToUnixString for Vec<u8, Global>

source§

impl ToUnixString for &mut [u8]

source§

impl ToUnixString for ()

Implementors§