pub struct CapacityInfo {
pub data: usize,
pub flag: usize,
/* private fields */
}
Expand description
The capacity information of the given VecOption<T>
Fields§
§data: usize
The capacity of the data vector that holds T
s
flag: usize
The capacity of the BitVec
that holds the discriminants
Trait Implementations§
Source§impl Clone for CapacityInfo
impl Clone for CapacityInfo
Source§fn clone(&self) -> CapacityInfo
fn clone(&self) -> CapacityInfo
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 Debug for CapacityInfo
impl Debug for CapacityInfo
Source§impl Hash for CapacityInfo
impl Hash for CapacityInfo
Source§impl Ord for CapacityInfo
impl Ord for CapacityInfo
Source§fn cmp(&self, other: &CapacityInfo) -> Ordering
fn cmp(&self, other: &CapacityInfo) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CapacityInfo
impl PartialEq for CapacityInfo
Source§impl PartialOrd for CapacityInfo
impl PartialOrd for CapacityInfo
impl Copy for CapacityInfo
impl Eq for CapacityInfo
impl StructuralPartialEq for CapacityInfo
Auto Trait Implementations§
impl Freeze for CapacityInfo
impl RefUnwindSafe for CapacityInfo
impl Send for CapacityInfo
impl Sync for CapacityInfo
impl Unpin for CapacityInfo
impl UnwindSafe for CapacityInfo
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