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
sourceimpl 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>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
pub fn bag(&self, alpha: u32) -> Bag
pub fn clear(&self)
Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request