pub unsafe trait BnStrCompatible {
    type Result: AsRef<[u8]>;

    // Required method
    fn into_bytes_with_nul(self) -> Self::Result;
}

Required Associated Types§

Required Methods§

Implementations on Foreign Types§

source§

impl BnStrCompatible for CString

source§

impl BnStrCompatible for String

source§

impl<'a> BnStrCompatible for &'a Cow<'a, str>

source§

impl<'a> BnStrCompatible for &'a str

source§

impl<'a> BnStrCompatible for &'a String

source§

impl<'a> BnStrCompatible for &'a CStr

§

type Result = &'a [u8]

source§

fn into_bytes_with_nul(self) -> Self::Result

Implementors§