pub struct Set<'a, BS>(/* private fields */);Expand description
Set is a Hamt with empty values for the purpose of acting as a hash set.
Implementations§
Source§impl<'a, BS> Set<'a, BS>where
BS: Blockstore,
impl<'a, BS> Set<'a, BS>where
BS: Blockstore,
Sourcepub fn new_set_with_bitwidth(bs: &'a BS, bitwidth: u32) -> Self
pub fn new_set_with_bitwidth(bs: &'a BS, bitwidth: u32) -> Self
Initializes a new empty Set given a bitwidth.
Sourcepub fn from_root(bs: &'a BS, cid: &Cid) -> Result<Self, Error>
pub fn from_root(bs: &'a BS, cid: &Cid) -> Result<Self, Error>
Initializes a Set from a root Cid.
Trait Implementations§
Source§impl<'a, BS: Blockstore> PartialEq for Set<'a, BS>
impl<'a, BS: Blockstore> PartialEq for Set<'a, BS>
Auto Trait Implementations§
impl<'a, BS> Freeze for Set<'a, BS>
impl<'a, BS> RefUnwindSafe for Set<'a, BS>where
BS: RefUnwindSafe,
impl<'a, BS> Send for Set<'a, BS>where
BS: Sync,
impl<'a, BS> !Sync for Set<'a, BS>
impl<'a, BS> Unpin for Set<'a, BS>
impl<'a, BS> UnwindSafe for Set<'a, BS>where
BS: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more