Struct cfx_storage::OwnedNodeSet
source · pub struct OwnedNodeSet { /* private fields */ }
Expand description
A container to store information about owned nodes.
Implementations§
source§impl OwnedNodeSet
impl OwnedNodeSet
sourcepub fn insert(
&mut self,
val: NodeRefDeltaMpt,
original_db_key: Option<u32>
) -> bool
pub fn insert( &mut self, val: NodeRefDeltaMpt, original_db_key: Option<u32> ) -> bool
Insertion takes an extra argument original_db_key
to
indicate where a dirty node comes from. If it’s a new node,
pass None. If it’s a committed node, the argument is ignored.
pub fn remove(&mut self, val: &NodeRefDeltaMpt) -> bool
pub fn contains(&self, val: &NodeRefDeltaMpt) -> bool
pub fn iter(&self) -> Iter<'_>
pub fn get_original_db_key(&self, index: u32) -> Option<u32>
Trait Implementations§
source§impl Debug for OwnedNodeSet
impl Debug for OwnedNodeSet
source§impl Default for OwnedNodeSet
impl Default for OwnedNodeSet
source§fn default() -> OwnedNodeSet
fn default() -> OwnedNodeSet
Returns the “default value” for a type. Read more
source§impl<'a> IntoIterator for &'a OwnedNodeSet
impl<'a> IntoIterator for &'a OwnedNodeSet
Auto Trait Implementations§
impl Freeze for OwnedNodeSet
impl RefUnwindSafe for OwnedNodeSet
impl Send for OwnedNodeSet
impl Sync for OwnedNodeSet
impl Unpin for OwnedNodeSet
impl UnwindSafe for OwnedNodeSet
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