pub struct RecordHash(/* private fields */);Implementations§
Source§impl RecordHash
impl RecordHash
pub fn parse(text: &str) -> Result<Self, HashTextError>
pub fn from_digest(kind: RecordKind, digest: [u8; 32]) -> Self
pub fn as_str(&self) -> &str
pub fn as_bytes(&self) -> &[u8; 48]
pub fn typed_text(&self) -> TypedH3Text
pub fn kind(&self) -> RecordKind
pub fn digest(&self) -> [u8; 32]
Trait Implementations§
Source§impl AsRef<str> for RecordHash
impl AsRef<str> for RecordHash
Source§impl Clone for RecordHash
impl Clone for RecordHash
Source§fn clone(&self) -> RecordHash
fn clone(&self) -> RecordHash
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 RecordHash
Source§impl Debug for RecordHash
impl Debug for RecordHash
Source§impl Display for RecordHash
impl Display for RecordHash
impl Eq for RecordHash
Source§impl FromStr for RecordHash
impl FromStr for RecordHash
Source§impl Hash for RecordHash
impl Hash for RecordHash
Source§impl Ord for RecordHash
impl Ord for RecordHash
Source§fn cmp(&self, other: &RecordHash) -> Ordering
fn cmp(&self, other: &RecordHash) -> Ordering
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 RecordHash
impl PartialEq for RecordHash
Source§fn eq(&self, other: &RecordHash) -> bool
fn eq(&self, other: &RecordHash) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RecordHash
impl PartialOrd for RecordHash
impl StructuralPartialEq for RecordHash
Source§impl TryFrom<&str> for RecordHash
impl TryFrom<&str> for RecordHash
Auto Trait Implementations§
impl Freeze for RecordHash
impl RefUnwindSafe for RecordHash
impl Send for RecordHash
impl Sync for RecordHash
impl Unpin for RecordHash
impl UnsafeUnpin for RecordHash
impl UnwindSafe for RecordHash
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