pub enum FileDigest {
Md5(Vec<u8>),
Sha2_256(Vec<u8>),
Sha2_384(Vec<u8>),
Sha2_512(Vec<u8>),
Sha2_224(Vec<u8>),
}
Variants§
Implementations§
Source§impl FileDigest
impl FileDigest
pub fn load_from_str( algorithm: FileDigestAlgorithm, stringly_data: impl AsRef<str>, ) -> Result<Self, RPMError>
Trait Implementations§
Source§impl Clone for FileDigest
impl Clone for FileDigest
Source§fn clone(&self) -> FileDigest
fn clone(&self) -> FileDigest
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 FileDigest
impl Debug for FileDigest
Source§impl Hash for FileDigest
impl Hash for FileDigest
Source§impl PartialEq for FileDigest
impl PartialEq for FileDigest
impl Eq for FileDigest
impl StructuralPartialEq for FileDigest
Auto Trait Implementations§
impl Freeze for FileDigest
impl RefUnwindSafe for FileDigest
impl Send for FileDigest
impl Sync for FileDigest
impl Unpin for FileDigest
impl UnwindSafe for FileDigest
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more