pub struct RootPath {
pub root: RpoDigest,
pub path: MerklePath,
}
Expand description
A container for a MerklePath and its crate::Word root.
This structure does not provide any guarantees regarding the correctness of the path to the root. For more information, check MerklePath::verify.
Fields§
§root: RpoDigest
The node value opening for path
.
path: MerklePath
The path from value
to root
(exclusive).
Trait Implementations§
source§impl Deserializable for RootPath
impl Deserializable for RootPath
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 Serializable for RootPath
impl Serializable for RootPath
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 RootPath
impl StructuralPartialEq for RootPath
Auto Trait Implementations§
impl Freeze for RootPath
impl RefUnwindSafe for RootPath
impl Send for RootPath
impl Sync for RootPath
impl Unpin for RootPath
impl UnwindSafe for RootPath
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
)