Struct blaze_pk::VarIntList
source · [−]Tuple Fields
0: Vec<VarInt>
Implementations
sourceimpl VarIntList
impl VarIntList
sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Creates a new VarIntList with the provided capacity
sourcepub fn insert(&mut self, value: impl Into<VarInt>)
pub fn insert(&mut self, value: impl Into<VarInt>)
Inserts a new value into the underlying list
Trait Implementations
sourceimpl Codec for VarIntList
impl Codec for VarIntList
sourcefn encode(&self, output: &mut Vec<u8>)
fn encode(&self, output: &mut Vec<u8>)
Function for implementing encoding of Self to the
provided vec of bytes Read more
sourcefn decode(reader: &mut Reader<'_>) -> CodecResult<Self>
fn decode(reader: &mut Reader<'_>) -> CodecResult<Self>
Function for implementing decoding of Self from
the provided Reader. Will return None if self
cannot be decoded Read more
sourcefn value_type() -> ValueType
fn value_type() -> ValueType
Optional additional specifier for Tdf types that
tells which type this is Read more
sourcefn skip(reader: &mut Reader<'_>) -> CodecResult<()>
fn skip(reader: &mut Reader<'_>) -> CodecResult<()>
Function to provide functionality for skipping this
data type (e.g. read the bytes without using them) Read more
sourcefn encode_bytes(&self) -> Vec<u8>
fn encode_bytes(&self) -> Vec<u8>
Shortcut function for encoding self directly to
a Vec of bytes Read more
sourceimpl Debug for VarIntList
impl Debug for VarIntList
sourceimpl PartialEq<VarIntList> for VarIntList
impl PartialEq<VarIntList> for VarIntList
sourcefn eq(&self, other: &VarIntList) -> bool
fn eq(&self, other: &VarIntList) -> bool
impl Eq for VarIntList
impl StructuralEq for VarIntList
impl StructuralPartialEq for VarIntList
Auto Trait Implementations
impl RefUnwindSafe for VarIntList
impl Send for VarIntList
impl Sync for VarIntList
impl Unpin for VarIntList
impl UnwindSafe for VarIntList
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more