[−][src]Struct vint32::vint_array::VIntArray
Fields
data: Vec<u8>
Implementations
impl VIntArray
[src]
Encodes vint32
unsigned 32-bit integers into a vec.
pub fn from_vals(vals: &[u32]) -> VIntArray
[src]
Creates a VIntArray
from a slice of u32
pub fn encode_vals(&mut self, vals: &[u32])
[src]
Encode vals
into VIntArray
pub fn serialize(&self) -> Vec<u8>
[src]
serializes VIntArray
, by appending its size vint-encoded and then the data.
Maximum supported size of encoded data is therefore u32::MAX
pub fn encode(&mut self, val: u32)
[src]
Encode single val
into VIntArray
pub fn iter(&self) -> VintArrayIterator<'_>ⓘNotable traits for VintArrayIterator<'a>
impl<'a> Iterator for VintArrayIterator<'a> type Item = u32;
[src]
Notable traits for VintArrayIterator<'a>
impl<'a> Iterator for VintArrayIterator<'a> type Item = u32;
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for VIntArray
[src]
impl Send for VIntArray
[src]
impl Sync for VIntArray
[src]
impl Unpin for VIntArray
[src]
impl UnwindSafe for VIntArray
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,