#[repr(u8)]pub enum StrnRep<'a> {
ByteStr(&'a [u8]),
CStr(*const u8),
}Expand description
Either a byte string or a string pointer
Variants§
ByteStr(&'a [u8])
Byte string terminated with null
CStr(*const u8)
Pointer to a null-terminated string
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for StrnRep<'a>
impl<'a> RefUnwindSafe for StrnRep<'a>
impl<'a> !Send for StrnRep<'a>
impl<'a> !Sync for StrnRep<'a>
impl<'a> Unpin for StrnRep<'a>
impl<'a> UnwindSafe for StrnRep<'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