#[non_exhaustive]pub struct ContainerItem {
pub semantic: ItemSemantic,
pub mime: String,
pub length: Option<usize>,
pub padding: Option<usize>,
}Expand description
An item in a GContainer directory.
Parsed from Container:Directory → rdf:Seq → rdf:li entries in
XMP. Each item describes a secondary image appended after the primary
JPEG’s EOI.
The padding field is from Google’s Dynamic Depth
Format extension and not present in canonical Ultra HDR.
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.semantic: ItemSemanticSemantic role.
mime: StringMIME type (e.g. "image/jpeg", "image/png").
length: Option<usize>Byte length of this item’s payload. None for the primary image
(its size is determined by its own EOI).
padding: Option<usize>Padding bytes before this item. Used by some Dynamic Depth Format implementations.
Implementations§
Trait Implementations§
Source§impl Clone for ContainerItem
impl Clone for ContainerItem
Source§fn clone(&self) -> ContainerItem
fn clone(&self) -> ContainerItem
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 moreSource§impl Debug for ContainerItem
impl Debug for ContainerItem
impl Eq for ContainerItem
Source§impl PartialEq for ContainerItem
impl PartialEq for ContainerItem
impl StructuralPartialEq for ContainerItem
Auto Trait Implementations§
impl Freeze for ContainerItem
impl RefUnwindSafe for ContainerItem
impl Send for ContainerItem
impl Sync for ContainerItem
impl Unpin for ContainerItem
impl UnsafeUnpin for ContainerItem
impl UnwindSafe for ContainerItem
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