pub struct Digest(/* private fields */);
Implementations§
Source§impl RpoDigest
impl RpoDigest
Sourcepub const SERIALIZED_SIZE: usize = 32usize
pub const SERIALIZED_SIZE: usize = 32usize
The serialized size of the digest in bytes.
pub const fn new(value: [BaseElement; 4]) -> RpoDigest
pub fn as_elements(&self) -> &[BaseElement]
pub fn as_bytes(&self) -> [u8; 32]
pub fn digests_as_elements_iter<'a, I>( digests: I, ) -> impl Iterator<Item = &'a BaseElement>
pub fn digests_as_elements(digests: &[RpoDigest]) -> &[BaseElement]
Trait Implementations§
Source§impl Deserializable for RpoDigest
impl Deserializable for RpoDigest
Source§fn read_from<R>(source: &mut R) -> Result<RpoDigest, DeserializationError>where
R: ByteReader,
fn read_from<R>(source: &mut R) -> Result<RpoDigest, 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<&RpoDigest> for LeafIndex<miden_crypto::::merkle::smt::full::{impl#5}::{constant#0}>
impl From<&RpoDigest> for LeafIndex<miden_crypto::::merkle::smt::full::{impl#5}::{constant#0}>
Source§impl From<RpoDigest> for LeafIndex<miden_crypto::::merkle::smt::full::{impl#4}::{constant#0}>
impl From<RpoDigest> for LeafIndex<miden_crypto::::merkle::smt::full::{impl#4}::{constant#0}>
Source§impl FromIterator<RpoDigest> for MerklePath
impl FromIterator<RpoDigest> for MerklePath
Source§fn from_iter<T>(iter: T) -> MerklePathwhere
T: IntoIterator<Item = RpoDigest>,
fn from_iter<T>(iter: T) -> MerklePathwhere
T: IntoIterator<Item = RpoDigest>,
Creates a value from an iterator. Read more
Source§impl IntoIterator for RpoDigest
impl IntoIterator for RpoDigest
Source§type Item = BaseElement
type Item = BaseElement
The type of the elements being iterated over.
Source§type IntoIter = <[BaseElement; 4] as IntoIterator>::IntoIter
type IntoIter = <[BaseElement; 4] as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
Source§impl KvMap<RpoDigest, Vec<BaseElement>> for AdviceMap
impl KvMap<RpoDigest, Vec<BaseElement>> for AdviceMap
fn get(&self, key: &RpoDigest) -> Option<&Vec<Felt>>
fn contains_key(&self, key: &RpoDigest) -> bool
fn len(&self) -> usize
fn insert(&mut self, key: RpoDigest, value: Vec<Felt>) -> Option<Vec<Felt>>
fn remove(&mut self, key: &RpoDigest) -> Option<Vec<Felt>>
fn iter(&self) -> Box<dyn Iterator<Item = (&RpoDigest, &Vec<Felt>)> + '_>
fn is_empty(&self) -> bool
Source§impl Ord for RpoDigest
impl Ord for RpoDigest
Source§impl PartialOrd for RpoDigest
impl PartialOrd for RpoDigest
Source§impl Randomizable for RpoDigest
impl Randomizable for RpoDigest
Source§impl Serializable for RpoDigest
impl Serializable for RpoDigest
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 Copy for RpoDigest
impl Eq for RpoDigest
impl StructuralPartialEq for RpoDigest
Auto Trait Implementations§
impl Freeze for RpoDigest
impl RefUnwindSafe for RpoDigest
impl Send for RpoDigest
impl Sync for RpoDigest
impl Unpin for RpoDigest
impl UnwindSafe for RpoDigest
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