#[repr(C)]pub struct HurrayKvEntry {
pub key: *const u8,
pub key_len: usize,
pub value: HurrayKvValue,
}Expand description
One KV pair: a borrowed key and its value.
The key is UTF-8 and MUST NOT be empty; it carries no NUL terminator, so key_len is
not optional.
Fields§
§key: *const u8First byte of the key.
key_len: usizeKey length in bytes.
value: HurrayKvValueThe value this key maps to.
Trait Implementations§
Source§impl Clone for HurrayKvEntry
impl Clone for HurrayKvEntry
Source§fn clone(&self) -> HurrayKvEntry
fn clone(&self) -> HurrayKvEntry
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 HurrayKvEntry
Auto Trait Implementations§
impl !Send for HurrayKvEntry
impl !Sync for HurrayKvEntry
impl Freeze for HurrayKvEntry
impl RefUnwindSafe for HurrayKvEntry
impl Unpin for HurrayKvEntry
impl UnsafeUnpin for HurrayKvEntry
impl UnwindSafe for HurrayKvEntry
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