Struct avalanche_types::ids::bits::Set64
source · pub struct Set64(_);
Expand description
Set that can contain uints in the range [0, 64). All functions are O(1). The zero value is the empty set. ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/ids#BitSet64
Implementations§
source§impl Set64
impl Set64
pub fn new() -> Self
sourcepub fn intersection(&mut self, s: Set64)
pub fn intersection(&mut self, s: Set64)
Takes the intersection of [s] with this set.
sourcepub fn difference(&mut self, s: Set64)
pub fn difference(&mut self, s: Set64)
Removes all the elements in [s] from this set.
Trait Implementations§
source§impl Display for Set64
impl Display for Set64
ref. https://doc.rust-lang.org/std/string/trait.ToString.html ref. https://doc.rust-lang.org/std/fmt/trait.Display.html Use “Self.to_string()” to directly invoke this
source§impl PartialEq<Set64> for Set64
impl PartialEq<Set64> for Set64
impl Copy for Set64
impl Eq for Set64
impl StructuralEq for Set64
impl StructuralPartialEq for Set64
Auto Trait Implementations§
impl RefUnwindSafe for Set64
impl Send for Set64
impl Sync for Set64
impl Unpin for Set64
impl UnwindSafe for Set64
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request