Struct libpijul::pristine::SerializedMerkle
source · pub struct SerializedMerkle(pub [u8; 33]);
Tuple Fields§
§0: [u8; 33]
Trait Implementations§
source§impl Check for SerializedMerkle
impl Check for SerializedMerkle
source§impl Clone for SerializedMerkle
impl Clone for SerializedMerkle
source§fn clone(&self) -> SerializedMerkle
fn clone(&self) -> SerializedMerkle
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 Debug for SerializedMerkle
impl Debug for SerializedMerkle
source§impl From<&SerializedMerkle> for Scalar
impl From<&SerializedMerkle> for Scalar
source§fn from(h: &SerializedMerkle) -> Self
fn from(h: &SerializedMerkle) -> Self
Converts to this type from the input type.
source§impl Ord for SerializedMerkle
impl Ord for SerializedMerkle
source§fn cmp(&self, other: &SerializedMerkle) -> Ordering
fn cmp(&self, other: &SerializedMerkle) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SerializedMerkle
impl PartialEq for SerializedMerkle
source§fn eq(&self, other: &SerializedMerkle) -> bool
fn eq(&self, other: &SerializedMerkle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SerializedMerkle
impl PartialOrd for SerializedMerkle
source§fn partial_cmp(&self, other: &SerializedMerkle) -> Option<Ordering>
fn partial_cmp(&self, other: &SerializedMerkle) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Storable for SerializedMerkle
impl Storable for SerializedMerkle
§type PageReferences = Empty<u64>
type PageReferences = Empty<u64>
An iterator over the offsets to pages contained in this
value. Only values from this crate can generate non-empty
iterators, but combined values (like tuples) must chain the
iterators returned by method
page_offsets
.source§fn page_references(&self) -> Self::PageReferences
fn page_references(&self) -> Self::PageReferences
If this value is an offset to another page at offset
offset
,
return Some(offset)
. Return None
else.source§impl UnsizedStorable for SerializedMerkle
impl UnsizedStorable for SerializedMerkle
source§fn size(&self) -> usize
fn size(&self) -> usize
If Self::SIZE.is_some()
, this must return the same
value. The default implementation is Self;:SIZE.unwrap()
.
const ALIGN: usize = 1usize
source§unsafe fn write_to_page(&self, p: *mut u8)
unsafe fn write_to_page(&self, p: *mut u8)
Write to a page. Must not overwrite the allocated size, but
this isn’t checked (which is why it’s unsafe).
unsafe fn from_raw_ptr<'a, T>(_: &T, p: *const u8) -> &'a Self
impl Copy for SerializedMerkle
impl Eq for SerializedMerkle
impl StructuralPartialEq for SerializedMerkle
Auto Trait Implementations§
impl RefUnwindSafe for SerializedMerkle
impl Send for SerializedMerkle
impl Sync for SerializedMerkle
impl Unpin for SerializedMerkle
impl UnwindSafe for SerializedMerkle
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