#[repr(C)]pub struct ConstStr {
pub ptr: *const u8,
pub len: usize,
}Expand description
A const reference to a string represnted in a contiguous array of bytes
Fields§
§ptr: *const u8§len: usizeTrait Implementations§
Auto Trait Implementations§
impl Freeze for ConstStr
impl RefUnwindSafe for ConstStr
impl !Send for ConstStr
impl !Sync for ConstStr
impl Unpin for ConstStr
impl UnwindSafe for ConstStr
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