pub struct VarIntList<T>(pub Vec<T>);Expand description
List of Var ints
Tuple Fields§
§0: Vec<T>Implementations§
Source§impl<T> VarIntList<T>
impl<T> VarIntList<T>
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Creates a new VarIntList with the provided capacity
capacity The capacity for the underlying list
Sourcepub fn push(&mut self, value: impl Into<T>)
pub fn push(&mut self, value: impl Into<T>)
Pushes a new value into the underlying list
value The value to push
Trait Implementations§
Source§impl<T: Debug> Debug for VarIntList<T>
impl<T: Debug> Debug for VarIntList<T>
Source§impl<C> Decodable for VarIntList<C>where
C: VarInt,
impl<C> Decodable for VarIntList<C>where
C: VarInt,
Source§impl<T> Default for VarIntList<T>
impl<T> Default for VarIntList<T>
Source§impl<C> Encodable for VarIntList<C>where
C: VarInt,
impl<C> Encodable for VarIntList<C>where
C: VarInt,
Source§impl<T: PartialEq> PartialEq for VarIntList<T>
impl<T: PartialEq> PartialEq for VarIntList<T>
Source§fn eq(&self, other: &VarIntList<T>) -> bool
fn eq(&self, other: &VarIntList<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<T> Serialize for VarIntList<T>where
T: Serialize,
impl<T> Serialize for VarIntList<T>where
T: Serialize,
Source§impl<C> ValueType for VarIntList<C>
impl<C> ValueType for VarIntList<C>
Source§fn value_type() -> TdfType
fn value_type() -> TdfType
The type of tdf value this is
impl<T: Eq> Eq for VarIntList<T>
impl<T> StructuralPartialEq for VarIntList<T>
Auto Trait Implementations§
impl<T> Freeze for VarIntList<T>
impl<T> RefUnwindSafe for VarIntList<T>where
T: RefUnwindSafe,
impl<T> Send for VarIntList<T>where
T: Send,
impl<T> Sync for VarIntList<T>where
T: Sync,
impl<T> Unpin for VarIntList<T>where
T: Unpin,
impl<T> UnsafeUnpin for VarIntList<T>
impl<T> UnwindSafe for VarIntList<T>where
T: UnwindSafe,
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
Source§impl<D> FromRequest for D
impl<D> FromRequest for D
Source§fn from_request(req: &Packet) -> Result<D, DecodeError>
fn from_request(req: &Packet) -> Result<D, DecodeError>
Takes the value from the request returning a decode result of
whether the value could be created Read more
Source§impl<F> FromRequestInternal for Fwhere
F: FromRequest,
impl<F> FromRequestInternal for Fwhere
F: FromRequest,
fn from_request(req: &Packet) -> Result<F, DecodeError>
Source§impl<E> IntoResponse for Ewhere
E: Encodable + 'static,
impl<E> IntoResponse for Ewhere
E: Encodable + 'static,
Source§fn into_response(self, req: &Packet) -> Packet
fn into_response(self, req: &Packet) -> Packet
Into packet conversion