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