pub struct SetU64(_);
Expand description
A set of u64
Implementations
sourceimpl SetU64
impl SetU64
sourcepub fn with_capacity_of(other: &Self) -> Self
pub fn with_capacity_of(other: &Self) -> Self
Create an empty set with capacity to hold the provided set.
let a: tinyset::SetU64 = (1..300).collect();
let mut b = tinyset::SetU64::with_capacity_of(&a);
assert_eq!(a.capacity(), b.capacity());
assert_eq!(b.len(), 0);
for i in a.iter() {
b.insert(i);
}
assert_eq!(a.capacity(), b.capacity());
assert_eq!(b.len(), a.len());
Trait Implementations
sourceimpl<'b> BitOr<&'b SetU64> for SetU64
impl<'b> BitOr<&'b SetU64> for SetU64
sourceimpl FromIterator<u64> for SetU64
impl FromIterator<u64> for SetU64
sourcefn from_iter<T>(iter: T) -> Self where
T: IntoIterator<Item = u64>,
fn from_iter<T>(iter: T) -> Self where
T: IntoIterator<Item = u64>,
Creates a value from an iterator. Read more
sourceimpl IntoIterator for SetU64
impl IntoIterator for SetU64
sourceimpl<'a, 'b> Sub<&'b SetU64> for &'a SetU64
impl<'a, 'b> Sub<&'b SetU64> for &'a SetU64
sourceimpl<'b> Sub<&'b SetU64> for SetU64
impl<'b> Sub<&'b SetU64> for SetU64
impl Eq for SetU64
impl Send for SetU64
impl Sync for SetU64
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more