Struct avalanche_types::ids::bag::Unique
source · pub struct Unique(_);
Expand description
Maps from an Id to the BitSet. ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/ids#UniqueBag
Implementations§
source§impl Unique
impl Unique
pub fn new() -> Self
pub fn union_set(&self, id: Id, set: Set64)
pub fn difference_set(&self, id: Id, set: Set64)
pub fn add(&self, set_id: u64, ids: Vec<Id>)
pub fn difference(&self, diff: &Unique)
pub fn get_set(&self, id: &Id) -> Set64
pub fn remove_set(&self, id: &Id)
pub fn list(&self) -> Vec<Id> ⓘ
pub fn bag(&self, alpha: u32) -> Bag
pub fn clear(&self)
Trait Implementations§
source§impl Display for Unique
impl Display for Unique
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
Auto Trait Implementations§
impl !RefUnwindSafe for Unique
impl !Send for Unique
impl !Sync for Unique
impl Unpin for Unique
impl !UnwindSafe for Unique
Blanket Implementations§
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