Enum btrfs_diskformat::ChecksumType
source · #[repr(u16)]
pub enum ChecksumType {
CRC32C,
XXHASH64,
SHA256,
BLAKE2b,
}
Variants
CRC32C
XXHASH64
SHA256
BLAKE2b
Trait Implementations
sourceimpl Clone for ChecksumType
impl Clone for ChecksumType
sourcefn clone(&self) -> ChecksumType
fn clone(&self) -> ChecksumType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ChecksumType
impl Debug for ChecksumType
sourceimpl From<ChecksumType> for u16
impl From<ChecksumType> for u16
sourcefn from(enum_value: ChecksumType) -> Self
fn from(enum_value: ChecksumType) -> Self
Converts to this type from the input type.
sourceimpl Hash for ChecksumType
impl Hash for ChecksumType
sourceimpl IntoEnumIterator for ChecksumType
impl IntoEnumIterator for ChecksumType
type Iterator = ChecksumTypeIter
fn iter() -> ChecksumTypeIterⓘNotable traits for ChecksumTypeIterimpl Iterator for ChecksumTypeIter type Item = ChecksumType;
sourceimpl PartialEq<ChecksumType> for ChecksumType
impl PartialEq<ChecksumType> for ChecksumType
sourcefn eq(&self, other: &ChecksumType) -> bool
fn eq(&self, other: &ChecksumType) -> bool
sourceimpl TryFrom<u16> for ChecksumType
impl TryFrom<u16> for ChecksumType
type Error = TryFromPrimitiveError<ChecksumType>
type Error = TryFromPrimitiveError<ChecksumType>
The type returned in the event of a conversion error.
sourcefn try_from(number: u16) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u16) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for ChecksumType
impl TryFromPrimitive for ChecksumType
type Primitive = u16
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for ChecksumType
impl StructuralPartialEq for ChecksumType
Auto Trait Implementations
impl RefUnwindSafe for ChecksumType
impl Send for ChecksumType
impl Sync for ChecksumType
impl Unpin for ChecksumType
impl UnwindSafe for ChecksumType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more