#[non_exhaustive]pub enum PartitionKind {
Header,
Body,
Footer,
}Expand description
Which kind of Partition a Partition Pack Key identifies (Table 4 byte 14; Tables 6-8).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Header
0x02 — Header Partition (§7.2, Table 6).
Body
0x03 — Body Partition (§7.3, Table 7).
0x04 — Footer Partition (§7.4, Table 8; never Open).
Implementations§
Trait Implementations§
Source§impl Clone for PartitionKind
impl Clone for PartitionKind
Source§fn clone(&self) -> PartitionKind
fn clone(&self) -> PartitionKind
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 PartitionKind
Source§impl Debug for PartitionKind
impl Debug for PartitionKind
Source§impl<'de> Deserialize<'de> for PartitionKind
Available on crate feature serde only.
impl<'de> Deserialize<'de> for PartitionKind
Available on crate feature
serde only.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 Display for PartitionKind
impl Display for PartitionKind
impl Eq for PartitionKind
Source§impl Hash for PartitionKind
impl Hash for PartitionKind
Source§impl PartialEq for PartitionKind
impl PartialEq for PartitionKind
Source§impl Serialize for PartitionKind
Available on crate feature serde only.
impl Serialize for PartitionKind
Available on crate feature
serde only.impl StructuralPartialEq for PartitionKind
Auto Trait Implementations§
impl Freeze for PartitionKind
impl RefUnwindSafe for PartitionKind
impl Send for PartitionKind
impl Sync for PartitionKind
impl Unpin for PartitionKind
impl UnsafeUnpin for PartitionKind
impl UnwindSafe for PartitionKind
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