pub struct BitSet { /* private fields */ }

Implementations

serialize a BitSet.

Create a new BitSet that may contain elements within [0, max_val).

Create a new BitSet that may contain elements. Initially all values will be set. within [0, max_val).

Removes all elements from the BitSet.

Intersect with serialized bitset

Returns the number of elements in the BitSet.

Inserts an element in the BitSet

Inserts an element in the BitSet

Returns true iff the elements is in the BitSet.

Returns the first non-empty TinySet associated to a bucket lower or greater than bucket.

Reminder: the tiny set with the bucket bucket, represents the elements from bucket * 64 to (bucket+1) * 64.

Returns the tiny bitset representing the the set restricted to the number range from bucket * 64 to (bucket + 1) * 64.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.