Struct miden_objects::crypto::merkle::ValuePath
source · pub struct ValuePath {
pub value: RpoDigest,
pub path: MerklePath,
}Expand description
A container for a crate::Word value and its MerklePath opening.
Fields§
§value: RpoDigestThe node value opening for path.
path: MerklePathThe path from value to root (exclusive).
Implementations§
Trait Implementations§
source§impl Deserializable for ValuePath
impl Deserializable for ValuePath
source§fn read_from<R>(source: &mut R) -> Result<ValuePath, DeserializationError>where
R: ByteReader,
fn read_from<R>(source: &mut R) -> Result<ValuePath, DeserializationError>where
R: ByteReader,
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§impl From<(MerklePath, [BaseElement; 4])> for ValuePath
impl From<(MerklePath, [BaseElement; 4])> for ValuePath
source§fn from(_: (MerklePath, [BaseElement; 4])) -> ValuePath
fn from(_: (MerklePath, [BaseElement; 4])) -> ValuePath
Converts to this type from the input type.
source§impl PartialEq for ValuePath
impl PartialEq for ValuePath
source§impl Serializable for ValuePath
impl Serializable for ValuePath
source§fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Serializes
self into bytes and writes these bytes into the target.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
impl Eq for ValuePath
impl StructuralPartialEq for ValuePath
Auto Trait Implementations§
impl Freeze for ValuePath
impl RefUnwindSafe for ValuePath
impl Send for ValuePath
impl Sync for ValuePath
impl Unpin for ValuePath
impl UnwindSafe for ValuePath
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