#[repr(C, packed(1))]pub struct VarDataHeader8 {
pub length: u8,
}Expand description
Variable-length data header with u8 length (1 byte).
Fields§
§length: u8Length of the variable data in bytes.
Implementations§
Source§impl VarDataHeader8
impl VarDataHeader8
Sourcepub const ENCODED_LENGTH: usize = 1
pub const ENCODED_LENGTH: usize = 1
Encoded length of the var data header in bytes.
Trait Implementations§
Source§impl Clone for VarDataHeader8
impl Clone for VarDataHeader8
Source§fn clone(&self) -> VarDataHeader8
fn clone(&self) -> VarDataHeader8
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 VarDataHeader8
Source§impl Debug for VarDataHeader8
impl Debug for VarDataHeader8
impl Eq for VarDataHeader8
Source§impl PartialEq for VarDataHeader8
impl PartialEq for VarDataHeader8
Source§fn eq(&self, other: &VarDataHeader8) -> bool
fn eq(&self, other: &VarDataHeader8) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VarDataHeader8
Auto Trait Implementations§
impl Freeze for VarDataHeader8
impl RefUnwindSafe for VarDataHeader8
impl Send for VarDataHeader8
impl Sync for VarDataHeader8
impl Unpin for VarDataHeader8
impl UnsafeUnpin for VarDataHeader8
impl UnwindSafe for VarDataHeader8
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