Struct alkahest::Seq [−][src]
pub struct Seq<T> { /* fields omitted */ }
Expand description
Schema
for runtime sized sequence of T
.
Packed from iterator of impl
Pack<T>
.
Unpacks into iterator of Unpacked<T>
Trait Implementations
impl<I, T> Pack<Seq<T>> for I where
T: Schema,
I: IntoIterator,
I::IntoIter: ExactSizeIterator,
I::Item: Pack<T>,
impl<I, T> Pack<Seq<T>> for I where
T: Schema,
I: IntoIterator,
I::IntoIter: ExactSizeIterator,
I::Item: Pack<T>,
type Packed = [FixedUsize; 2]
type Packed = [FixedUsize; 2]
Packed value with this schema. Trivially readable from and writable to bytes. Read more
Alignment required for successful unpacking.
See Self::unpack
method. Read more
fn unpack<'a>(packed: [FixedUsize; 2], bytes: &'a [u8]) -> SeqUnpacked<'a, T>ⓘNotable traits for SeqUnpacked<'a, T>
impl<'a, T> Iterator for SeqUnpacked<'a, T> where
T: Schema, type Item = Unpacked<'a, T>;
fn unpack<'a>(packed: [FixedUsize; 2], bytes: &'a [u8]) -> SeqUnpacked<'a, T>ⓘNotable traits for SeqUnpacked<'a, T>
impl<'a, T> Iterator for SeqUnpacked<'a, T> where
T: Schema, type Item = Unpacked<'a, T>;
Unpack the value from packed value and bytes.
input
must be aligned according to Self::align
. Read more
type Unpacked = SeqUnpacked<'a, T>
type Unpacked = SeqUnpacked<'a, T>
Unpacked value type.