Struct forest_actor::util::Set [−][src]
pub struct Set<'a, BS>(_);
Expand description
Set is a Hamt with empty values for the purpose of acting as a hash set.
Implementations
impl<'a, BS> Set<'a, BS> where
BS: BlockStore,
[src]
impl<'a, BS> Set<'a, BS> where
BS: BlockStore,
[src]pub fn new_set_with_bitwidth(bs: &'a BS, bitwidth: u32) -> Self
[src]
pub fn new_set_with_bitwidth(bs: &'a BS, bitwidth: u32) -> Self
[src]Initializes a new empty Set given a bitwidth.
pub fn from_root(bs: &'a BS, cid: &Cid) -> Result<Self, Error>
[src]
pub fn from_root(bs: &'a BS, cid: &Cid) -> Result<Self, Error>
[src]Initializes a Set from a root Cid.
pub fn for_each<F>(&self, f: F) -> Result<(), Box<dyn StdError>> where
F: FnMut(&BytesKey) -> Result<(), Box<dyn StdError>>,
[src]
pub fn for_each<F>(&self, f: F) -> Result<(), Box<dyn StdError>> where
F: FnMut(&BytesKey) -> Result<(), Box<dyn StdError>>,
[src]Iterates through all keys in the set.
pub fn collect_keys(&self) -> Result<Vec<BytesKey>, Error>
[src]
pub fn collect_keys(&self) -> Result<Vec<BytesKey>, Error>
[src]Collects all keys from the set into a vector.
Trait Implementations
Auto Trait Implementations
impl<'a, BS> RefUnwindSafe for Set<'a, BS> where
BS: RefUnwindSafe,
BS: RefUnwindSafe,
impl<'a, BS> Send for Set<'a, BS> where
BS: Sync,
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,
BS: RefUnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,