#[non_exhaustive]pub enum PartitionKind {
Header,
Body,
Footer,
#[non_exhaustive] Other(u8),
}Expand description
MXF Partition Pack kind — the PartitionKind byte, byte 14 of the
Partition Pack Key UL (SMPTE ST 377-1 §7.2-7.4).
Typed rather than a raw u8 because the spec names these values: leaving
the byte exposed made every consumer re-implement the same three-way lookup,
which is what the decode-completeness rule exists to prevent. The crate
already solves the identical problem with IsobmffLayout and DocType.
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
Header Partition (0x02) — ST 377-1 §7.2.
Body
Body Partition (0x03) — ST 377-1 §7.3.
Footer Partition (0x04) — ST 377-1 §7.4.
#[non_exhaustive]Other(u8)
A value outside the range this crate’s prober accepts. Carried rather
than discarded so Display stays lossless; read it with
PartitionKind::as_u8, which is why the field itself need not be
matchable downstream.
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 Display for PartitionKind
impl Display for PartitionKind
impl Eq for PartitionKind
Source§impl PartialEq for PartitionKind
impl PartialEq for PartitionKind
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