[][src]Struct tinyset::setu64::SetU64

pub struct SetU64(_);

A set of u64

Implementations

impl SetU64[src]

pub fn is_empty(&self) -> bool[src]

Returns true if the set is empty

impl SetU64[src]

pub fn len(&self) -> usize[src]

The number of elements in the set

pub fn capacity(&self) -> usize[src]

The capacity of the set

pub fn debug_me(&self, msg: &str)[src]

Print debugging information about this set.

pub fn mem_used(&self) -> usize[src]

Tally up how much memory is in use.

pub fn with_capacity_and_max(cap: usize, mx: u64) -> SetU64[src]

Create a set with the given capacity

pub fn with_capacity_and_bits(cap: usize, bits: u64) -> SetU64[src]

Create a set with the given capacity and bits

pub const fn new() -> Self[src]

An empty set

pub fn insert(&mut self, e: u64) -> bool[src]

Insert and return true if it was not present.

pub fn remove(&mut self, e: u64) -> bool[src]

Remove

pub fn contains(&self, e: u64) -> bool[src]

Contais

pub fn iter<'a>(&'a self) -> impl Iterator<Item = u64> + 'a + Debug[src]

Iterate over

pub fn drain<'a>(&'a mut self) -> impl Iterator<Item = u64> + 'a[src]

Clears the set, returning all elements in an iterator.

Trait Implementations

impl Clone for SetU64[src]

impl Debug for SetU64[src]

impl Default for SetU64[src]

impl Drop for SetU64[src]

impl FromIterator<u64> for SetU64[src]

impl IntoIterator for SetU64[src]

type Item = u64

The type of the elements being iterated over.

type IntoIter = IntoIter

Which kind of iterator are we turning this into?

impl Send for SetU64[src]

impl Sync for SetU64[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,