[−][src]Struct trie::Change
Change for a merkle trie operation.
Fields
adds: HashMap<H256, Vec<u8>>
Additions to the database.
removes: HashSet<H256>
Removals to the database.
Methods
impl Change
[src]
pub fn add_raw(&mut self, key: H256, value: Vec<u8>)
[src]
Change to add a new raw value.
pub fn add_node<'a, 'b, 'c>(&'a mut self, node: &'c MerkleNode<'b>)
[src]
Change to add a new node.
pub fn add_value<'a, 'b, 'c>(
&'a mut self,
node: &'c MerkleNode<'b>
) -> MerkleValue<'b>
[src]
&'a mut self,
node: &'c MerkleNode<'b>
) -> MerkleValue<'b>
Change to add a new node, and return the value added.
pub fn remove_raw(&mut self, key: H256)
[src]
Change to remove a raw key.
pub fn remove_node<'a, 'b, 'c>(&'a mut self, node: &'c MerkleNode<'b>) -> bool
[src]
Change to remove a node. Return whether there's any node being removed.
pub fn merge(&mut self, other: &Change)
[src]
Merge another change to this change.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Same for T
type Output = T
Should always be Self