#[repr(transparent)]pub struct CompressedRistretto(pub [u8; 32]);
Tuple Fields§
§0: [u8; 32]
Trait Implementations§
source§impl Clone for CompressedRistretto
impl Clone for CompressedRistretto
source§fn clone(&self) -> CompressedRistretto
fn clone(&self) -> CompressedRistretto
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl From<CompressedRistretto> for CompressedRistretto
impl From<CompressedRistretto> for CompressedRistretto
source§fn from(pod: CompressedRistretto) -> Self
fn from(pod: CompressedRistretto) -> Self
Converts to this type from the input type.
source§impl From<CompressedRistretto> for CompressedRistretto
impl From<CompressedRistretto> for CompressedRistretto
source§fn from(cr: CompressedRistretto) -> Self
fn from(cr: CompressedRistretto) -> Self
Converts to this type from the input type.
source§impl PartialEq<CompressedRistretto> for CompressedRistretto
impl PartialEq<CompressedRistretto> for CompressedRistretto
source§fn eq(&self, other: &CompressedRistretto) -> bool
fn eq(&self, other: &CompressedRistretto) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CompressedRistretto
impl Eq for CompressedRistretto
impl Pod for CompressedRistretto
impl StructuralEq for CompressedRistretto
impl StructuralPartialEq for CompressedRistretto
Auto Trait Implementations§
impl RefUnwindSafe for CompressedRistretto
impl Send for CompressedRistretto
impl Sync for CompressedRistretto
impl Unpin for CompressedRistretto
impl UnwindSafe for CompressedRistretto
Blanket Implementations§
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere T: AnyBitPattern,
§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.