#[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§
Source§impl Clone for pm_string_t
impl Clone for pm_string_t
Source§fn clone(&self) -> pm_string_t
fn clone(&self) -> pm_string_t
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for pm_string_t
Source§impl Debug for pm_string_t
impl Debug for pm_string_t
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