pub enum SectorHeaderSize {
Normal,
Expanded,
}
Expand description
Used to convey a sector’s header size when parsing from a raw buffer.
Variants§
Trait Implementations§
Source§impl Clone for SectorHeaderSize
impl Clone for SectorHeaderSize
Source§fn clone(&self) -> SectorHeaderSize
fn clone(&self) -> SectorHeaderSize
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SectorHeaderSize
impl Debug for SectorHeaderSize
Source§impl Default for SectorHeaderSize
impl Default for SectorHeaderSize
Source§impl<'de> Deserialize<'de> for SectorHeaderSize
impl<'de> Deserialize<'de> for SectorHeaderSize
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&ArchiveRef> for SectorHeaderSize
impl From<&ArchiveRef> for SectorHeaderSize
Source§fn from(archive: &ArchiveRef) -> Self
fn from(archive: &ArchiveRef) -> Self
Converts to this type from the input type.
Source§impl Hash for SectorHeaderSize
impl Hash for SectorHeaderSize
Source§impl Ord for SectorHeaderSize
impl Ord for SectorHeaderSize
Source§fn cmp(&self, other: &SectorHeaderSize) -> Ordering
fn cmp(&self, other: &SectorHeaderSize) -> 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 SectorHeaderSize
impl PartialEq for SectorHeaderSize
Source§impl PartialOrd for SectorHeaderSize
impl PartialOrd for SectorHeaderSize
Source§impl Serialize for SectorHeaderSize
impl Serialize for SectorHeaderSize
impl Eq for SectorHeaderSize
impl StructuralPartialEq for SectorHeaderSize
Auto Trait Implementations§
impl Freeze for SectorHeaderSize
impl RefUnwindSafe for SectorHeaderSize
impl Send for SectorHeaderSize
impl Sync for SectorHeaderSize
impl Unpin for SectorHeaderSize
impl UnwindSafe for SectorHeaderSize
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