pub struct ListHeader {
pub count: usize,
pub size: usize,
}
Expand description
List metadata. A KCEP list is a layout for variable-length lists whose elements may be different types, and are identified by a uint index.
Fields§
§count: usize
How many elements are in the list?
size: usize
How many addresses does the list take up in total?
Trait Implementations§
source§impl Clone for ListHeader
impl Clone for ListHeader
source§fn clone(&self) -> ListHeader
fn clone(&self) -> ListHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ListHeader
impl Debug for ListHeader
source§impl<'de> Deserialize<'de> for ListHeader
impl<'de> Deserialize<'de> for ListHeader
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<ListHeader> for Primitive
impl From<ListHeader> for Primitive
source§fn from(value: ListHeader) -> Self
fn from(value: ListHeader) -> Self
Converts to this type from the input type.
source§impl PartialEq for ListHeader
impl PartialEq for ListHeader
source§fn eq(&self, other: &ListHeader) -> bool
fn eq(&self, other: &ListHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ListHeader
impl Serialize for ListHeader
source§impl TryFrom<Primitive> for ListHeader
impl TryFrom<Primitive> for ListHeader
impl Copy for ListHeader
impl Eq for ListHeader
impl StructuralPartialEq for ListHeader
Auto Trait Implementations§
impl Freeze for ListHeader
impl RefUnwindSafe for ListHeader
impl Send for ListHeader
impl Sync for ListHeader
impl Unpin for ListHeader
impl UnwindSafe for ListHeader
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