pub struct RpxDigest(/* private fields */);
Implementations§
Source§impl RpxDigest
impl RpxDigest
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]) -> RpxDigest
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: &[RpxDigest]) -> &[BaseElement]
Trait Implementations§
Source§impl Deserializable for RpxDigest
impl Deserializable for RpxDigest
Source§fn read_from<R>(source: &mut R) -> Result<RpxDigest, DeserializationError>where
R: ByteReader,
fn read_from<R>(source: &mut R) -> Result<RpxDigest, 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 IntoIterator for RpxDigest
impl IntoIterator for RpxDigest
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 Ord for RpxDigest
impl Ord for RpxDigest
Source§impl PartialOrd for RpxDigest
impl PartialOrd for RpxDigest
Source§impl Randomizable for RpxDigest
impl Randomizable for RpxDigest
Source§impl Serializable for RpxDigest
impl Serializable for RpxDigest
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 RpxDigest
impl Eq for RpxDigest
impl StructuralPartialEq for RpxDigest
Auto Trait Implementations§
impl Freeze for RpxDigest
impl RefUnwindSafe for RpxDigest
impl Send for RpxDigest
impl Sync for RpxDigest
impl Unpin for RpxDigest
impl UnwindSafe for RpxDigest
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