fn to_bytes_optional_nul(&self) -> &[u8] {
        match self.rep {
            StrnRep::ByteStr(bs) => { bs }
            StrnRep::CStr(_cstr)  => { assert!(false, "strn bytes"); &[] }
            //  TODO: unsafe { ::core::mem::transmute::<*const u8, &[u8]>(cstr) }
        }
    }
/// Convert the type to array of bytes that may or may not end with null. Strn always ends with null.
Convert the type to array of bytes that may or may not end with null. Strn always ends with null.
Convert the type to array of bytes that may or may not end with null . Strn always ends with null .
fn to_bytes_optional_nul(&self) -> &[u8] {
        match self.rep {
            StrnRep::ByteStr(bs) => { bs }
            StrnRep::CStr(_cstr)  => { assert!(false, "strn bytes"); &[] }
            //  TODO: unsafe { ::core::mem::transmute::<*const u8, &[u8]>(cstr) }
        }
    }
fn to_bytes_optional_nul ( & self ) -> & [ u8 ] { match self . rep { StrnRep :: ByteStr ( bs ) => { bs } StrnRep :: CStr ( _cstr ) => { assert ! ( false " " ) ; & [ ] } //  TODO: unsafe { ::core::mem::transmute::<*const u8, &[u8]>(cstr) } } }
Convert the type to array of bytes that may or may not end with null.
Convert the type to array of bytes that may or may not end with null .
&self
&self