Struct parity_wasm::elements::CountedListWriter
source · pub struct CountedListWriter<I: Serialize<Error = Error>, T: IntoIterator<Item = I>>(pub usize, pub T);
Expand description
Helper struct to write series of T
preceded by the length of the sequence
serialized as VarUint32.
Tuple Fields§
§0: usize
§1: T
Trait Implementations§
source§impl<I: Clone + Serialize<Error = Error>, T: Clone + IntoIterator<Item = I>> Clone for CountedListWriter<I, T>
impl<I: Clone + Serialize<Error = Error>, T: Clone + IntoIterator<Item = I>> Clone for CountedListWriter<I, T>
source§fn clone(&self) -> CountedListWriter<I, T>
fn clone(&self) -> CountedListWriter<I, T>
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 more