pub struct ValuePath {
pub value: RpoDigest,
pub path: MerklePath,
}
Expand description
A container for a crate::Word value and its MerklePath opening.
Fields§
§value: RpoDigest
The node value opening for path
.
path: MerklePath
The path from value
to root
(exclusive).
Implementations§
Trait Implementations§
source§impl Deserializable for ValuePath
impl Deserializable for ValuePath
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§impl From<(MerklePath, [BaseElement; 4])> for ValuePath
impl From<(MerklePath, [BaseElement; 4])> for ValuePath
source§fn from((path, value): (MerklePath, Word)) -> Self
fn from((path, value): (MerklePath, Word)) -> Self
Converts to this type from the input type.
source§impl Serializable for ValuePath
impl Serializable for ValuePath
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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)