pub enum ConstSize<const N: usize> {
List([usize; N]),
Value(usize),
}
Expand description
Const size represents either a const array values or a single value which responsible for the whole list.
Variants§
List([usize; N])
A constant array of estimates.
Value(usize)
A value which act as a single estimate for all entries.
Trait Implementations§
impl<const N: usize> Copy for ConstSize<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for ConstSize<N>
impl<const N: usize> RefUnwindSafe for ConstSize<N>
impl<const N: usize> Send for ConstSize<N>
impl<const N: usize> Sync for ConstSize<N>
impl<const N: usize> Unpin for ConstSize<N>
impl<const N: usize> UnwindSafe for ConstSize<N>
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