#[repr(C)]pub struct CStringWithLength {
pub ptr: *const c_uchar,
pub len: usize,
}Fields§
§ptr: *const c_uchar§len: usizeTrait Implementations§
Source§impl From<&str> for CStringWithLength
impl From<&str> for CStringWithLength
Source§impl From<CStringWithLength> for &str
impl From<CStringWithLength> for &str
Source§fn from(value: CStringWithLength) -> Self
fn from(value: CStringWithLength) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Send for CStringWithLength
impl !Sync for CStringWithLength
impl Freeze for CStringWithLength
impl RefUnwindSafe for CStringWithLength
impl Unpin for CStringWithLength
impl UnsafeUnpin for CStringWithLength
impl UnwindSafe for CStringWithLength
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