#[repr(C)]pub struct RafsDigest {
pub data: DigestData,
}Fields§
§data: DigestDataImplementations§
Source§impl RafsDigest
impl RafsDigest
pub fn from_buf(buf: &[u8], algorithm: Algorithm) -> Self
Sourcepub fn from_reader<R: Read>(
reader: &mut R,
algorithm: Algorithm,
) -> Result<Self>
pub fn from_reader<R: Read>( reader: &mut R, algorithm: Algorithm, ) -> Result<Self>
Compute message digest with the given algorithm by read data from the reader.
Sourcepub fn from_string(input: &str) -> Self
pub fn from_string(input: &str) -> Self
According to the format of sha256.
pub fn hasher(algorithm: Algorithm) -> RafsDigestHasher
Trait Implementations§
Source§impl AsRef<[u8]> for RafsDigest
impl AsRef<[u8]> for RafsDigest
Source§impl Clone for RafsDigest
impl Clone for RafsDigest
Source§fn clone(&self) -> RafsDigest
fn clone(&self) -> RafsDigest
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 RafsDigest
impl Debug for RafsDigest
Source§impl Default for RafsDigest
impl Default for RafsDigest
Source§fn default() -> RafsDigest
fn default() -> RafsDigest
Returns the “default value” for a type. Read more
Source§impl Display for RafsDigest
impl Display for RafsDigest
Source§impl From<&[u8; 32]> for &RafsDigest
impl From<&[u8; 32]> for &RafsDigest
Source§fn from(data: &DigestData) -> Self
fn from(data: &DigestData) -> Self
Converts to this type from the input type.
Source§impl From<[u8; 32]> for RafsDigest
impl From<[u8; 32]> for RafsDigest
Source§fn from(data: DigestData) -> Self
fn from(data: DigestData) -> Self
Converts to this type from the input type.
Source§impl From<RafsDigest> for String
impl From<RafsDigest> for String
Source§fn from(d: RafsDigest) -> Self
fn from(d: RafsDigest) -> Self
Converts to this type from the input type.
Source§impl Hash for RafsDigest
impl Hash for RafsDigest
Source§impl Ord for RafsDigest
impl Ord for RafsDigest
Source§fn cmp(&self, other: &RafsDigest) -> Ordering
fn cmp(&self, other: &RafsDigest) -> Ordering
1.21.0 · 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 RafsDigest
impl PartialEq for RafsDigest
Source§impl PartialOrd for RafsDigest
impl PartialOrd for RafsDigest
impl Copy for RafsDigest
impl Eq for RafsDigest
impl StructuralPartialEq for RafsDigest
Auto Trait Implementations§
impl Freeze for RafsDigest
impl RefUnwindSafe for RafsDigest
impl Send for RafsDigest
impl Sync for RafsDigest
impl Unpin for RafsDigest
impl UnwindSafe for RafsDigest
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