#[non_exhaustive]pub struct FileType {
pub brand: [u8; 4],
pub minor_version: u32,
pub compatibility: Vec<[u8; 4]>,
}Expand description
The File Type box (ftyp, I.5.2), as stored. A file is read when jp2
is its brand or in its compatibility list.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.brand: [u8; 4]BR: the brand, jp2 for a JP2 file.
minor_version: u32MinV: the minor version. The standard requires 0, and a reader
ignores it.
compatibility: Vec<[u8; 4]>CLi: the compatibility list, in box order.
Trait Implementations§
impl Eq for FileType
impl StructuralPartialEq for FileType
Auto Trait Implementations§
impl Forget for FileType
impl Freeze for FileType
impl Move for FileType
impl RefUnwindSafe for FileType
impl Send for FileType
impl Sync for FileType
impl Unpin for FileType
impl UnsafeUnpin for FileType
impl UnwindSafe for FileType
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