Struct miden_crypto::merkle::StoreNode
source · pub struct StoreNode { /* private fields */ }
Trait Implementations§
source§impl Deserializable for StoreNode
impl Deserializable for StoreNode
source§fn read_from<R: ByteReader>(
source: &mut R
) -> Result<Self, DeserializationError>
fn read_from<R: ByteReader>( source: &mut R ) -> Result<Self, DeserializationError>
Reads a sequence of bytes from the provided
source
, attempts to deserialize these bytes
into Self
, and returns the result. Read moresource§fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
source§fn read_batch_from<R>(
source: &mut R,
num_elements: usize
) -> Result<Vec<Self>, DeserializationError>where
R: ByteReader,
fn read_batch_from<R>( source: &mut R, num_elements: usize ) -> Result<Vec<Self>, DeserializationError>where R: ByteReader,
Reads a sequence of bytes from the provided
source
, attempts to deserialize these bytes
into a vector with the specified number of Self
elements, and returns the result. Read moresource§impl PartialEq for StoreNode
impl PartialEq for StoreNode
source§impl Serializable for StoreNode
impl Serializable for StoreNode
source§fn write_into<W: ByteWriter>(&self, target: &mut W)
fn write_into<W: ByteWriter>(&self, target: &mut W)
Serializes
self
into bytes and writes these bytes into the target
.source§fn write_batch_into<W>(source: &[Self], target: &mut W)where
W: ByteWriter,
fn write_batch_into<W>(source: &[Self], target: &mut W)where W: ByteWriter,
source§fn get_size_hint(&self) -> usize
fn get_size_hint(&self) -> usize
Returns an estimate of how many bytes are needed to represent self. Read more
source§impl<T: KvMap<RpoDigest, StoreNode>> TryApplyDiff<RpoDigest, StoreNode> for MerkleStore<T>
impl<T: KvMap<RpoDigest, StoreNode>> TryApplyDiff<RpoDigest, StoreNode> for MerkleStore<T>
§type Error = MerkleError
type Error = MerkleError
An error type that can be returned if the changes cannot be applied.
§type DiffType = MerkleStoreDelta
type DiffType = MerkleStoreDelta
The type that describes the difference between two objects.
source§fn try_apply(&mut self, diff: Self::DiffType) -> Result<(), MerkleError>
fn try_apply(&mut self, diff: Self::DiffType) -> Result<(), MerkleError>
Applies the provided changes described by Self::DiffType to the object implementing this trait.
Returns an error if the changes cannot be applied.
source§impl TryApplyDiff<RpoDigest, StoreNode> for SimpleSmt
impl TryApplyDiff<RpoDigest, StoreNode> for SimpleSmt
§type Error = MerkleError
type Error = MerkleError
An error type that can be returned if the changes cannot be applied.
§type DiffType = MerkleTreeDelta
type DiffType = MerkleTreeDelta
The type that describes the difference between two objects.
source§fn try_apply(&mut self, diff: MerkleTreeDelta) -> Result<(), MerkleError>
fn try_apply(&mut self, diff: MerkleTreeDelta) -> Result<(), MerkleError>
Applies the provided changes described by Self::DiffType to the object implementing this trait.
Returns an error if the changes cannot be applied.
impl Copy for StoreNode
impl Eq for StoreNode
impl StructuralEq for StoreNode
impl StructuralPartialEq for StoreNode
Auto Trait Implementations§
impl RefUnwindSafe for StoreNode
impl Send for StoreNode
impl Sync for StoreNode
impl Unpin for StoreNode
impl UnwindSafe for StoreNode
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