#[non_exhaustive]pub struct BoxInfo {
pub name: Option<Cow<'static, str>>,
pub range: ByteRange,
pub metadata: Vec<ByteRange>,
}Expand description
A named container unit or unnamed bytes in the asset’s box view.
Boxes tile the asset in file order. They may combine several elements, such
as a GIF application extension’s sub-blocks; see Structure::boxes.
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.name: Option<Cow<'static, str>>The container-defined name, or None for unnamed bytes.
range: ByteRangeWhere the box is.
metadata: Vec<ByteRange>The ranges inside the box that hold asset metadata (XMP, EXIF).
Trait Implementations§
impl Eq for BoxInfo
impl StructuralPartialEq for BoxInfo
Auto Trait Implementations§
impl Forget for BoxInfo
impl Freeze for BoxInfo
impl Move for BoxInfo
impl RefUnwindSafe for BoxInfo
impl Send for BoxInfo
impl Sync for BoxInfo
impl Unpin for BoxInfo
impl UnsafeUnpin for BoxInfo
impl UnwindSafe for BoxInfo
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