#[repr(C)]pub struct TwigKeyVal {
pub key: *const u8,
pub key_len: usize,
pub value: *const u8,
pub value_len: usize,
}Expand description
C ABI mirror of Zig’s TwigKeyVal — one (key, value) attribute pair. Used
on the read path (TwigFlatNode::attrs_ptr, borrowed) and the write path
(twig_builder_set_attrs, copied). A NULL value is a bare attribute.
Fields§
§key: *const u8§key_len: usize§value: *const u8§value_len: usizeTrait Implementations§
Source§impl Clone for TwigKeyVal
impl Clone for TwigKeyVal
Source§fn clone(&self) -> TwigKeyVal
fn clone(&self) -> TwigKeyVal
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 TwigKeyVal
Auto Trait Implementations§
impl !Send for TwigKeyVal
impl !Sync for TwigKeyVal
impl Freeze for TwigKeyVal
impl RefUnwindSafe for TwigKeyVal
impl Unpin for TwigKeyVal
impl UnsafeUnpin for TwigKeyVal
impl UnwindSafe for TwigKeyVal
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