#[repr(C)]pub struct pm_string_t {
pub source: *const u8,
pub length: usize,
}Expand description
A view of a sequence of bytes. The string does not own the bytes, so they must remain valid for as long as the string is in use.
Fields§
§source: *const u8A pointer to the start of the string.
length: usizeThe length of the string in bytes of memory.
Trait Implementations§
Auto Trait Implementations§
impl !Send for pm_string_t
impl !Sync for pm_string_t
impl Freeze for pm_string_t
impl RefUnwindSafe for pm_string_t
impl Unpin for pm_string_t
impl UnsafeUnpin for pm_string_t
impl UnwindSafe for pm_string_t
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