pub struct SerializedHash { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Check for SerializedHash
impl Check for SerializedHash
Source§impl Clone for SerializedHash
impl Clone for SerializedHash
Source§fn clone(&self) -> SerializedHash
fn clone(&self) -> SerializedHash
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SerializedHash
Source§impl Debug for SerializedHash
impl Debug for SerializedHash
impl Eq for SerializedHash
Source§impl<'a> From<&'a Hash> for SerializedHash
impl<'a> From<&'a Hash> for SerializedHash
Source§impl<'a> From<&'a SerializedHash> for Hash
impl<'a> From<&'a SerializedHash> for Hash
Source§fn from(s: &'a SerializedHash) -> Hash
fn from(s: &'a SerializedHash) -> Hash
Converts to this type from the input type.
Source§impl From<&SerializedHash> for Scalar
impl From<&SerializedHash> for Scalar
Source§fn from(h: &SerializedHash) -> Self
fn from(h: &SerializedHash) -> Self
Converts to this type from the input type.
Source§impl From<Hash> for SerializedHash
impl From<Hash> for SerializedHash
Source§fn from(s: Hash) -> SerializedHash
fn from(s: Hash) -> SerializedHash
Converts to this type from the input type.
Source§impl From<SerializedHash> for Hash
impl From<SerializedHash> for Hash
Source§fn from(s: SerializedHash) -> Hash
fn from(s: SerializedHash) -> Hash
Converts to this type from the input type.
Source§impl Hash for SerializedHash
impl Hash for SerializedHash
Source§impl Ord for SerializedHash
impl Ord for SerializedHash
1.21.0 (const: unstable) · 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 SerializedHash
impl PartialEq for SerializedHash
Source§impl PartialOrd for SerializedHash
impl PartialOrd for SerializedHash
Source§impl Storable for SerializedHash
impl Storable for SerializedHash
Source§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 SerializedHash
impl UnsizedStorable for SerializedHash
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
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
Auto Trait Implementations§
impl Freeze for SerializedHash
impl RefUnwindSafe for SerializedHash
impl Send for SerializedHash
impl Sync for SerializedHash
impl Unpin for SerializedHash
impl UnsafeUnpin for SerializedHash
impl UnwindSafe for SerializedHash
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.