#[repr(transparent)]pub struct DigestType {
pub code: u8,
}Available on crate feature
unstable-new only.Expand description
A cryptographic digest algorithm.
Fields§
§code: u8The algorithm code.
Implementations§
Source§impl DigestType
impl DigestType
Trait Implementations§
Source§impl AsBytes for DigestType
impl AsBytes for DigestType
Source§impl BuildBytes for DigestType
impl BuildBytes for DigestType
Source§fn build_bytes<'bytes>(
&self,
bytes: &'bytes mut [u8],
) -> Result<&'bytes mut [u8], TruncationError>
fn build_bytes<'bytes>( &self, bytes: &'bytes mut [u8], ) -> Result<&'bytes mut [u8], TruncationError>
Serialize into a byte sequence. Read more
Source§fn built_bytes_size(&self) -> usize
fn built_bytes_size(&self) -> usize
The size of
self when serialized into a byte sequence. Read moreSource§impl Clone for DigestType
impl Clone for DigestType
Source§fn clone(&self) -> DigestType
fn clone(&self) -> DigestType
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 DigestType
Source§impl Debug for DigestType
impl Debug for DigestType
impl Eq for DigestType
Source§impl Hash for DigestType
impl Hash for DigestType
Source§impl Ord for DigestType
impl Ord for DigestType
Source§fn cmp(&self, other: &DigestType) -> Ordering
fn cmp(&self, other: &DigestType) -> 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<'bytes> ParseBytes<'bytes> for DigestTypewhere
u8: ParseBytes<'bytes>,
impl<'bytes> ParseBytes<'bytes> for DigestTypewhere
u8: ParseBytes<'bytes>,
Source§fn parse_bytes(bytes: &'bytes [u8]) -> Result<Self, ParseError>
fn parse_bytes(bytes: &'bytes [u8]) -> Result<Self, ParseError>
Source§impl ParseBytesZC for DigestType
impl ParseBytesZC for DigestType
Source§fn parse_bytes_by_ref(bytes: &[u8]) -> Result<&Self, ParseError>
fn parse_bytes_by_ref(bytes: &[u8]) -> Result<&Self, ParseError>
Source§fn parse_bytes_in<C: ParseBytesInPlace>(
container: C,
) -> Result<C::WithParsed<Self>, (C, ParseError)>
fn parse_bytes_in<C: ParseBytesInPlace>( container: C, ) -> Result<C::WithParsed<Self>, (C, ParseError)>
Parse bytes within the given container. Read more
Source§impl PartialEq for DigestType
impl PartialEq for DigestType
Source§impl PartialOrd for DigestType
impl PartialOrd for DigestType
Source§impl<'bytes> SplitBytes<'bytes> for DigestTypewhere
u8: SplitBytes<'bytes>,
impl<'bytes> SplitBytes<'bytes> for DigestTypewhere
u8: SplitBytes<'bytes>,
Source§fn split_bytes(bytes: &'bytes [u8]) -> Result<(Self, &'bytes [u8]), ParseError>
fn split_bytes(bytes: &'bytes [u8]) -> Result<(Self, &'bytes [u8]), ParseError>
Source§impl SplitBytesZC for DigestType
impl SplitBytesZC for DigestType
Source§fn split_bytes_by_ref(bytes: &[u8]) -> Result<(&Self, &[u8]), ParseError>
fn split_bytes_by_ref(bytes: &[u8]) -> Result<(&Self, &[u8]), ParseError>
impl StructuralPartialEq for DigestType
Source§impl UnsizedCopy for DigestType
impl UnsizedCopy for DigestType
Source§type Alignment = (<u8 as UnsizedCopy>::Alignment,)
type Alignment = (<u8 as UnsizedCopy>::Alignment,)
A type with the same alignment as
Self. Read moreSource§fn ptr_with_addr(&self, addr: *const ()) -> *const Self
fn ptr_with_addr(&self, addr: *const ()) -> *const Self
Change the address of a pointer to
Self. Read moreSource§fn unsized_copy_into<T: UnsizedCopyFrom<Source = Self>>(&self) -> T
fn unsized_copy_into<T: UnsizedCopyFrom<Source = Self>>(&self) -> T
Copy
self into a new container. Read moreAuto Trait Implementations§
impl Freeze for DigestType
impl RefUnwindSafe for DigestType
impl Send for DigestType
impl Sync for DigestType
impl Unpin for DigestType
impl UnsafeUnpin for DigestType
impl UnwindSafe for DigestType
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
Source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.