pub struct RecordHash(/* private fields */);Implementations§
Source§impl RecordHash
impl RecordHash
pub fn parse(text: &str) -> Result<RecordHash, HashTextError>
pub fn from_digest(kind: RecordKind, digest: [u8; 32]) -> RecordHash
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§type Err = HashTextError
type Err = HashTextError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<RecordHash, <RecordHash as FromStr>::Err>
fn from_str(s: &str) -> Result<RecordHash, <RecordHash as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§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
Source§type Error = HashTextError
type Error = HashTextError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &str,
) -> Result<RecordHash, <RecordHash as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<RecordHash, <RecordHash as TryFrom<&str>>::Error>
Performs the conversion.
Source§impl TryFrom<String> for RecordHash
impl TryFrom<String> for RecordHash
Source§type Error = HashTextError
type Error = HashTextError
The type returned in the event of a conversion error.
Source§fn try_from(
value: String,
) -> Result<RecordHash, <RecordHash as TryFrom<String>>::Error>
fn try_from( value: String, ) -> Result<RecordHash, <RecordHash as TryFrom<String>>::Error>
Performs the conversion.
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