Struct tinyset::u64set::Set64
[−]
[src]
pub struct Set64<T: Fits64>(_, _);
A set type that can store any type that fits in a u64
.
Methods
impl<T: Fits64> Set64<T>
[src]
fn default() -> Self
Creates an empty set..
fn new() -> Self
Creates an empty set..
fn with_capacity(cap: usize) -> Self
Creates an empty set with the specified capacity.
fn with_max_and_capacity(max: T, cap: usize) -> Self
Creates an empty set with the specified capacity.
fn insert(&mut self, elem: T) -> bool
Adds a value to the set.
If the set did not have this value present, true
is returned.
If the set did have this value present, false
is returned.
fn len(&self) -> usize
Returns the number of elements in the set.
fn contains(&self, value: &T) -> bool
Returns true if the set contains a value.
fn remove(&mut self, value: &T) -> bool
Removes an element, and returns true if that element was present.
Trait Implementations
impl<T: Debug + Fits64> Debug for Set64<T>
[src]
impl<T: Clone + Fits64> Clone for Set64<T>
[src]
fn clone(&self) -> Set64<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more