pub struct FixedVecFromIterBuilder<T: Storable<W>, W: Word, E: Endianness, I: IntoIterator<Item = T>> { /* private fields */ }Expand description
A builder for creating a FixedVec from an iterator.
This builder is designed for streaming data from an iterator without first
collecting it into a slice. It requires the bit_width to be specified
manually, as it cannot analyze the data in advance.
Implementations§
Source§impl<T, W, E, I> FixedVecFromIterBuilder<T, W, E, I>where
T: Storable<W>,
W: Word,
E: Endianness,
I: IntoIterator<Item = T>,
BufBitWriter<E, MemWordWriterVec<W, Vec<W>>>: BitWrite<E, Error = Infallible>,
impl<T, W, E, I> FixedVecFromIterBuilder<T, W, E, I>where
T: Storable<W>,
W: Word,
E: Endianness,
I: IntoIterator<Item = T>,
BufBitWriter<E, MemWordWriterVec<W, Vec<W>>>: BitWrite<E, Error = Infallible>,
Trait Implementations§
Auto Trait Implementations§
impl<T, W, E, I> Freeze for FixedVecFromIterBuilder<T, W, E, I>where
<W as TryInto<usize>>::Error: Sized,
<W as TryInto<u128>>::Error: Sized,
<W as TryInto<u64>>::Error: Sized,
<W as TryInto<u32>>::Error: Sized,
<W as TryInto<u16>>::Error: Sized,
<W as TryInto<u8>>::Error: Sized,
<W as TryInto<isize>>::Error: Sized,
<W as TryInto<i128>>::Error: Sized,
<W as TryInto<i64>>::Error: Sized,
<W as TryInto<i32>>::Error: Sized,
<W as TryInto<i16>>::Error: Sized,
<W as TryInto<i8>>::Error: Sized,
<W as TryFrom<usize>>::Error: Sized,
<W as TryFrom<u128>>::Error: Sized,
<W as TryFrom<u64>>::Error: Sized,
<W as TryFrom<u32>>::Error: Sized,
<W as TryFrom<u16>>::Error: Sized,
<W as TryFrom<u8>>::Error: Sized,
<W as TryFrom<isize>>::Error: Sized,
<W as TryFrom<i128>>::Error: Sized,
<W as TryFrom<i64>>::Error: Sized,
<W as TryFrom<i32>>::Error: Sized,
<W as TryFrom<i16>>::Error: Sized,
<W as TryFrom<i8>>::Error: Sized,
<W as FromStr>::Err: Sized,
I: Freeze,
impl<T, W, E, I> RefUnwindSafe for FixedVecFromIterBuilder<T, W, E, I>where
<W as TryInto<usize>>::Error: Sized,
<W as TryInto<u128>>::Error: Sized,
<W as TryInto<u64>>::Error: Sized,
<W as TryInto<u32>>::Error: Sized,
<W as TryInto<u16>>::Error: Sized,
<W as TryInto<u8>>::Error: Sized,
<W as TryInto<isize>>::Error: Sized,
<W as TryInto<i128>>::Error: Sized,
<W as TryInto<i64>>::Error: Sized,
<W as TryInto<i32>>::Error: Sized,
<W as TryInto<i16>>::Error: Sized,
<W as TryInto<i8>>::Error: Sized,
<W as TryFrom<usize>>::Error: Sized,
<W as TryFrom<u128>>::Error: Sized,
<W as TryFrom<u64>>::Error: Sized,
<W as TryFrom<u32>>::Error: Sized,
<W as TryFrom<u16>>::Error: Sized,
<W as TryFrom<u8>>::Error: Sized,
<W as TryFrom<isize>>::Error: Sized,
<W as TryFrom<i128>>::Error: Sized,
<W as TryFrom<i64>>::Error: Sized,
<W as TryFrom<i32>>::Error: Sized,
<W as TryFrom<i16>>::Error: Sized,
<W as TryFrom<i8>>::Error: Sized,
<W as FromStr>::Err: Sized,
I: RefUnwindSafe,
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, W, E, I> Send for FixedVecFromIterBuilder<T, W, E, I>where
<W as TryInto<usize>>::Error: Sized,
<W as TryInto<u128>>::Error: Sized,
<W as TryInto<u64>>::Error: Sized,
<W as TryInto<u32>>::Error: Sized,
<W as TryInto<u16>>::Error: Sized,
<W as TryInto<u8>>::Error: Sized,
<W as TryInto<isize>>::Error: Sized,
<W as TryInto<i128>>::Error: Sized,
<W as TryInto<i64>>::Error: Sized,
<W as TryInto<i32>>::Error: Sized,
<W as TryInto<i16>>::Error: Sized,
<W as TryInto<i8>>::Error: Sized,
<W as TryFrom<usize>>::Error: Sized,
<W as TryFrom<u128>>::Error: Sized,
<W as TryFrom<u64>>::Error: Sized,
<W as TryFrom<u32>>::Error: Sized,
<W as TryFrom<u16>>::Error: Sized,
<W as TryFrom<u8>>::Error: Sized,
<W as TryFrom<isize>>::Error: Sized,
<W as TryFrom<i128>>::Error: Sized,
<W as TryFrom<i64>>::Error: Sized,
<W as TryFrom<i32>>::Error: Sized,
<W as TryFrom<i16>>::Error: Sized,
<W as TryFrom<i8>>::Error: Sized,
<W as FromStr>::Err: Sized,
I: Send,
T: Send,
impl<T, W, E, I> Sync for FixedVecFromIterBuilder<T, W, E, I>where
<W as TryInto<usize>>::Error: Sized,
<W as TryInto<u128>>::Error: Sized,
<W as TryInto<u64>>::Error: Sized,
<W as TryInto<u32>>::Error: Sized,
<W as TryInto<u16>>::Error: Sized,
<W as TryInto<u8>>::Error: Sized,
<W as TryInto<isize>>::Error: Sized,
<W as TryInto<i128>>::Error: Sized,
<W as TryInto<i64>>::Error: Sized,
<W as TryInto<i32>>::Error: Sized,
<W as TryInto<i16>>::Error: Sized,
<W as TryInto<i8>>::Error: Sized,
<W as TryFrom<usize>>::Error: Sized,
<W as TryFrom<u128>>::Error: Sized,
<W as TryFrom<u64>>::Error: Sized,
<W as TryFrom<u32>>::Error: Sized,
<W as TryFrom<u16>>::Error: Sized,
<W as TryFrom<u8>>::Error: Sized,
<W as TryFrom<isize>>::Error: Sized,
<W as TryFrom<i128>>::Error: Sized,
<W as TryFrom<i64>>::Error: Sized,
<W as TryFrom<i32>>::Error: Sized,
<W as TryFrom<i16>>::Error: Sized,
<W as TryFrom<i8>>::Error: Sized,
<W as FromStr>::Err: Sized,
I: Sync,
T: Sync,
impl<T, W, E, I> Unpin for FixedVecFromIterBuilder<T, W, E, I>where
<W as TryInto<usize>>::Error: Sized,
<W as TryInto<u128>>::Error: Sized,
<W as TryInto<u64>>::Error: Sized,
<W as TryInto<u32>>::Error: Sized,
<W as TryInto<u16>>::Error: Sized,
<W as TryInto<u8>>::Error: Sized,
<W as TryInto<isize>>::Error: Sized,
<W as TryInto<i128>>::Error: Sized,
<W as TryInto<i64>>::Error: Sized,
<W as TryInto<i32>>::Error: Sized,
<W as TryInto<i16>>::Error: Sized,
<W as TryInto<i8>>::Error: Sized,
<W as TryFrom<usize>>::Error: Sized,
<W as TryFrom<u128>>::Error: Sized,
<W as TryFrom<u64>>::Error: Sized,
<W as TryFrom<u32>>::Error: Sized,
<W as TryFrom<u16>>::Error: Sized,
<W as TryFrom<u8>>::Error: Sized,
<W as TryFrom<isize>>::Error: Sized,
<W as TryFrom<i128>>::Error: Sized,
<W as TryFrom<i64>>::Error: Sized,
<W as TryFrom<i32>>::Error: Sized,
<W as TryFrom<i16>>::Error: Sized,
<W as TryFrom<i8>>::Error: Sized,
<W as FromStr>::Err: Sized,
I: Unpin,
T: Unpin,
E: Unpin,
impl<T, W, E, I> UnsafeUnpin for FixedVecFromIterBuilder<T, W, E, I>where
<W as TryInto<usize>>::Error: Sized,
<W as TryInto<u128>>::Error: Sized,
<W as TryInto<u64>>::Error: Sized,
<W as TryInto<u32>>::Error: Sized,
<W as TryInto<u16>>::Error: Sized,
<W as TryInto<u8>>::Error: Sized,
<W as TryInto<isize>>::Error: Sized,
<W as TryInto<i128>>::Error: Sized,
<W as TryInto<i64>>::Error: Sized,
<W as TryInto<i32>>::Error: Sized,
<W as TryInto<i16>>::Error: Sized,
<W as TryInto<i8>>::Error: Sized,
<W as TryFrom<usize>>::Error: Sized,
<W as TryFrom<u128>>::Error: Sized,
<W as TryFrom<u64>>::Error: Sized,
<W as TryFrom<u32>>::Error: Sized,
<W as TryFrom<u16>>::Error: Sized,
<W as TryFrom<u8>>::Error: Sized,
<W as TryFrom<isize>>::Error: Sized,
<W as TryFrom<i128>>::Error: Sized,
<W as TryFrom<i64>>::Error: Sized,
<W as TryFrom<i32>>::Error: Sized,
<W as TryFrom<i16>>::Error: Sized,
<W as TryFrom<i8>>::Error: Sized,
<W as FromStr>::Err: Sized,
I: UnsafeUnpin,
impl<T, W, E, I> UnwindSafe for FixedVecFromIterBuilder<T, W, E, I>where
<W as TryInto<usize>>::Error: Sized,
<W as TryInto<u128>>::Error: Sized,
<W as TryInto<u64>>::Error: Sized,
<W as TryInto<u32>>::Error: Sized,
<W as TryInto<u16>>::Error: Sized,
<W as TryInto<u8>>::Error: Sized,
<W as TryInto<isize>>::Error: Sized,
<W as TryInto<i128>>::Error: Sized,
<W as TryInto<i64>>::Error: Sized,
<W as TryInto<i32>>::Error: Sized,
<W as TryInto<i16>>::Error: Sized,
<W as TryInto<i8>>::Error: Sized,
<W as TryFrom<usize>>::Error: Sized,
<W as TryFrom<u128>>::Error: Sized,
<W as TryFrom<u64>>::Error: Sized,
<W as TryFrom<u32>>::Error: Sized,
<W as TryFrom<u16>>::Error: Sized,
<W as TryFrom<u8>>::Error: Sized,
<W as TryFrom<isize>>::Error: Sized,
<W as TryFrom<i128>>::Error: Sized,
<W as TryFrom<i64>>::Error: Sized,
<W as TryFrom<i32>>::Error: Sized,
<W as TryFrom<i16>>::Error: Sized,
<W as TryFrom<i8>>::Error: Sized,
<W as FromStr>::Err: Sized,
I: UnwindSafe,
T: UnwindSafe,
E: 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<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.