Struct fil_actors_runtime_v10::util::MapMap
source · pub struct MapMap<'a, BS, V, K1, K2> { /* private fields */ }
Implementations§
source§impl<'a, BS, V, K1, K2> MapMap<'a, BS, V, K1, K2>where
BS: Blockstore,
V: Serialize + DeserializeOwned + Clone + PartialEq,
K1: Keyer + Debug + Display,
K2: Keyer + Debug + Display,
impl<'a, BS, V, K1, K2> MapMap<'a, BS, V, K1, K2>where BS: Blockstore, V: Serialize + DeserializeOwned + Clone + PartialEq, K1: Keyer + Debug + Display, K2: Keyer + Debug + Display,
pub fn new(bs: &'a BS, outer_bitwidth: u32, inner_bitwidth: u32) -> Self
pub fn from_root( bs: &'a BS, cid: &Cid, outer_bitwidth: u32, inner_bitwidth: u32 ) -> Result<Self, Error>
pub fn flush(&mut self) -> Result<Cid, Error>
pub fn get(&mut self, outside_k: K1, inside_k: K2) -> Result<Option<&V>, Error>
pub fn for_each<F>(&mut self, outside_k: K1, f: F) -> Result<(), Error>where F: FnMut(&BytesKey, &V) -> Result<()>,
pub fn put( &mut self, outside_k: K1, inside_k: K2, value: V ) -> Result<Option<V>, Error>
pub fn put_if_absent( &mut self, outside_k: K1, inside_k: K2, value: V ) -> Result<bool, Error>
pub fn put_many<I>(&mut self, outside_k: K1, values: I) -> Result<(), Error>where I: Iterator<Item = (K2, V)>,
Auto Trait Implementations§
impl<'a, BS, V, K1, K2> RefUnwindSafe for MapMap<'a, BS, V, K1, K2>where BS: RefUnwindSafe, K1: RefUnwindSafe, K2: RefUnwindSafe, V: UnwindSafe + RefUnwindSafe,
impl<'a, BS, V, K1, K2> Send for MapMap<'a, BS, V, K1, K2>where BS: Sync, K1: Send, K2: Send, V: Send,
impl<'a, BS, V, K1, K2> !Sync for MapMap<'a, BS, V, K1, K2>
impl<'a, BS, V, K1, K2> Unpin for MapMap<'a, BS, V, K1, K2>where K1: Unpin, K2: Unpin,
impl<'a, BS, V, K1, K2> UnwindSafe for MapMap<'a, BS, V, K1, K2>where BS: RefUnwindSafe, K1: UnwindSafe, K2: UnwindSafe, V: UnwindSafe + 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