pub struct HashAlgorithm(/* private fields */);Implementations§
Source§impl HashAlgorithm
impl HashAlgorithm
pub const TOTAL_SIZE: usize = 1
pub const FIELD_SIZES: [usize; 1]
pub const FIELD_COUNT: usize = 1
pub fn value(&self) -> Byte
pub fn as_reader<'r>(&'r self) -> HashAlgorithmReader<'r>
Trait Implementations§
Source§impl Clone for HashAlgorithm
impl Clone for HashAlgorithm
Source§fn clone(&self) -> HashAlgorithm
fn clone(&self) -> HashAlgorithm
Returns a duplicate 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 HashAlgorithm
impl Debug for HashAlgorithm
Source§impl Default for HashAlgorithm
impl Default for HashAlgorithm
Source§impl Display for HashAlgorithm
impl Display for HashAlgorithm
Source§impl Entity for HashAlgorithm
impl Entity for HashAlgorithm
const NAME: &'static str = "HashAlgorithm"
type Builder = HashAlgorithmBuilder
fn new_unchecked(data: Bytes) -> Self
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> VerificationResult<Self>
fn from_compatible_slice(slice: &[u8]) -> VerificationResult<Self>
fn new_builder() -> Self::Builder
fn as_builder(self) -> Self::Builder
Source§impl From<HashAlgorithm> for InvoiceAttr
impl From<HashAlgorithm> for InvoiceAttr
Source§fn from(value: HashAlgorithm) -> Self
fn from(value: HashAlgorithm) -> Self
Converts to this type from the input type.
Source§impl From<HashAlgorithm> for InvoiceAttrUnion
impl From<HashAlgorithm> for InvoiceAttrUnion
Source§fn from(item: HashAlgorithm) -> Self
fn from(item: HashAlgorithm) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for HashAlgorithm
impl RefUnwindSafe for HashAlgorithm
impl Send for HashAlgorithm
impl Sync for HashAlgorithm
impl Unpin for HashAlgorithm
impl UnsafeUnpin for HashAlgorithm
impl UnwindSafe for HashAlgorithm
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