pub struct ByValue(/* private fields */);Expand description
Canonical record-facing By value (V.<b64a>.H3).
Implementations§
Source§impl ByValue
impl ByValue
Sourcepub fn from_verification_key(verification_key: VerificationKey) -> Self
pub fn from_verification_key(verification_key: VerificationKey) -> Self
Construct canonical By text from a validated 009 verification key.
Sourcepub fn parse(text: &str) -> Result<Self, TypedTextError>
pub fn parse(text: &str) -> Result<Self, TypedTextError>
Parse exact canonical By text and validate its x-only verification key.
pub fn as_str(&self) -> &str
pub fn as_bytes(&self) -> &[u8; 48]
pub fn typed_text(&self) -> TypedH3Text
Trait Implementations§
impl Copy for ByValue
impl Eq for ByValue
Source§impl Ord for ByValue
impl Ord for ByValue
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 PartialOrd for ByValue
impl PartialOrd for ByValue
impl StructuralPartialEq for ByValue
Auto Trait Implementations§
impl Freeze for ByValue
impl RefUnwindSafe for ByValue
impl Send for ByValue
impl Sync for ByValue
impl Unpin for ByValue
impl UnsafeUnpin for ByValue
impl UnwindSafe for ByValue
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