#[repr(C)]pub struct WhiskerStringRef {
pub ptr: *const c_char,
pub len: usize,
}Expand description
struct { const char* ptr; size_t len; } member of the C union
(also used as the key field of WhiskerKeyValueRaw).
Fields§
§ptr: *const c_char§len: usizeTrait Implementations§
Source§impl Clone for WhiskerStringRef
impl Clone for WhiskerStringRef
Source§fn clone(&self) -> WhiskerStringRef
fn clone(&self) -> WhiskerStringRef
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 WhiskerStringRef
Auto Trait Implementations§
impl !Send for WhiskerStringRef
impl !Sync for WhiskerStringRef
impl Freeze for WhiskerStringRef
impl RefUnwindSafe for WhiskerStringRef
impl Unpin for WhiskerStringRef
impl UnsafeUnpin for WhiskerStringRef
impl UnwindSafe for WhiskerStringRef
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