[−][src]Struct tinyset::setu64::SetU64
A set of u64
Implementations
impl SetU64
[src]
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]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SetU64
[src]
impl Default for SetU64
[src]
impl Drop for SetU64
[src]
impl FromIterator<u64> for SetU64
[src]
fn from_iter<T>(iter: T) -> Self where
T: IntoIterator<Item = u64>,
[src]
T: IntoIterator<Item = u64>,
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?
fn into_iter(self) -> IntoIter
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
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?
fn into_iter(self) -> I
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,