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
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> ⓘ
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