pub struct FixedVecBuilder<T: Storable<W>, W: Word, E: Endianness> { /* private fields */ }
Expand description
Implementations§
Source§impl<T, W, E> FixedVecBuilder<T, W, E>where
T: Storable<W>,
W: Word,
E: Endianness,
BufBitWriter<E, MemWordWriterVec<W, Vec<W>>>: BitWrite<E, Error = Infallible>,
impl<T, W, E> FixedVecBuilder<T, W, E>where
T: Storable<W>,
W: Word,
E: Endianness,
BufBitWriter<E, MemWordWriterVec<W, Vec<W>>>: BitWrite<E, Error = Infallible>,
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new builder with the default BitWidth::Minimal
strategy.
Sourcepub fn bit_width(self, strategy: BitWidth) -> Self
pub fn bit_width(self, strategy: BitWidth) -> Self
Sets the strategy for determining the number of bits for each element.
Trait Implementations§
Source§impl<T: Clone + Storable<W>, W: Clone + Word, E: Clone + Endianness> Clone for FixedVecBuilder<T, W, E>
impl<T: Clone + Storable<W>, W: Clone + Word, E: Clone + Endianness> Clone for FixedVecBuilder<T, W, E>
Source§fn clone(&self) -> FixedVecBuilder<T, W, E>
fn clone(&self) -> FixedVecBuilder<T, W, E>
Returns a duplicate 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 moreSource§impl<T: Debug + Storable<W>, W: Debug + Word, E: Debug + Endianness> Debug for FixedVecBuilder<T, W, E>
impl<T: Debug + Storable<W>, W: Debug + Word, E: Debug + Endianness> Debug for FixedVecBuilder<T, W, E>
Auto Trait Implementations§
impl<T, W, E> Freeze for FixedVecBuilder<T, W, E>
impl<T, W, E> RefUnwindSafe for FixedVecBuilder<T, W, E>
impl<T, W, E> Send for FixedVecBuilder<T, W, E>where
T: Send,
impl<T, W, E> Sync for FixedVecBuilder<T, W, E>where
T: Sync,
impl<T, W, E> Unpin for FixedVecBuilder<T, W, E>
impl<T, W, E> UnwindSafe for FixedVecBuilder<T, W, E>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.