Struct Usizes

Source
pub struct Usizes<CV = Vec<u64>> {
    pub values: CV,
}

Fields§

§values: CV

Trait Implementations§

Source§

impl<'a, CV: AsBytes<'a>> AsBytes<'a> for Usizes<CV>

Source§

fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>

Presents self as a sequence of byte slices, with their required alignment.
Source§

impl<CV: Clear> Clear for Usizes<CV>

Source§

fn clear(&mut self)

Clears self, without changing its capacity.
Source§

impl<CV: Clone> Clone for Usizes<CV>

Source§

fn clone(&self) -> Usizes<CV>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<CV: Container<u64>> Container<usize> for Usizes<CV>

Source§

type Borrowed<'a> = Usizes<<CV as Container<u64>>::Borrowed<'a>> where CV: 'a

The type of a borrowed container. Read more
Source§

fn borrow<'a>(&'a self) -> Self::Borrowed<'a>

Converts a reference to the type to a borrowed variant.
Source§

impl<CV: Default> Default for Usizes<CV>

Source§

fn default() -> Usizes<CV>

Returns the “default value” for a type. Read more
Source§

impl<'a, CV: FromBytes<'a>> FromBytes<'a> for Usizes<CV>

Source§

fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self

Reconstructs self from a sequence of correctly aligned and sized bytes slices. Read more
Source§

impl<CV: HeapSize> HeapSize for Usizes<CV>

Source§

fn heap_size(&self) -> (usize, usize)

Active (len) and allocated (cap) heap sizes in bytes. This should not include the size of self itself.
Source§

impl<'a, CV: IndexAs<u64>> Index for &'a Usizes<CV>

Source§

type Ref = usize

The type returned by the get method. Read more
Source§

fn get(&self, index: usize) -> Self::Ref

Source§

fn last(&self) -> Option<Self::Ref>
where Self: Len,

Source§

fn index_iter(&self) -> IterOwn<&Self>

Converts &self into an iterator. Read more
Source§

fn into_index_iter(self) -> IterOwn<Self>
where Self: Sized,

Converts self into an iterator. Read more
Source§

impl<CV: IndexAs<u64>> Index for Usizes<CV>

Source§

type Ref = usize

The type returned by the get method. Read more
Source§

fn get(&self, index: usize) -> Self::Ref

Source§

fn last(&self) -> Option<Self::Ref>
where Self: Len,

Source§

fn index_iter(&self) -> IterOwn<&Self>

Converts &self into an iterator. Read more
Source§

fn into_index_iter(self) -> IterOwn<Self>
where Self: Sized,

Converts self into an iterator. Read more
Source§

impl IndexMut for Usizes

Source§

type IndexMut<'a> = &'a mut u64

Type mutably referencing an indexed element.
Source§

fn get_mut(&mut self, index: usize) -> Self::IndexMut<'_>

Source§

fn last_mut(&mut self) -> Option<Self::IndexMut<'_>>
where Self: Len,

A reference to the last element, should one exist.
Source§

impl<CV: Len> Len for Usizes<CV>

Source§

fn len(&self) -> usize

The number of contained elements.
Source§

fn is_empty(&self) -> bool

Whether this contains no elements.
Source§

impl Push<&usize> for Usizes

Source§

fn push(&mut self, item: &usize)

Pushes an item onto self.
Source§

fn extend(&mut self, iter: impl IntoIterator<Item = T>)

Pushes elements of an iterator onto self.
Source§

impl Push<usize> for Usizes

Source§

fn push(&mut self, item: usize)

Pushes an item onto self.
Source§

fn extend(&mut self, iter: impl IntoIterator<Item = T>)

Pushes elements of an iterator onto self.
Source§

impl<CV: Copy> Copy for Usizes<CV>

Auto Trait Implementations§

§

impl<CV> Freeze for Usizes<CV>
where CV: Freeze,

§

impl<CV> RefUnwindSafe for Usizes<CV>
where CV: RefUnwindSafe,

§

impl<CV> Send for Usizes<CV>
where CV: Send,

§

impl<CV> Sync for Usizes<CV>
where CV: Sync,

§

impl<CV> Unpin for Usizes<CV>
where CV: Unpin,

§

impl<CV> UnwindSafe for Usizes<CV>
where CV: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> CopyAs<T> for T

Source§

fn copy_as(self) -> T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, S> IndexAs<S> for T
where T: Index, <T as Index>::Ref: CopyAs<S>,

Source§

fn index_as(&self, index: usize) -> S

Source§

fn last(&self) -> Option<T>
where Self: Len,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.