pub struct EmbeddedAsset {
pub item: Item,
pub parent: Option<usize>,
pub depth: usize,
pub structure: Result<Structure>,
/* private fields */
}Expand description
One embedded file discovered by Structure::scan_embedded.
Its structure’s offsets are relative to its own stream, not the original
file. Use reader to read its metadata from the original
source. No embedded image data is retained in memory.
Fields§
§item: ItemThe containing structure’s item, including its declared media type, URI and native identifiers.
parent: Option<usize>Index of the parent in the scan result, or None for a root child.
depth: usizeImmediate children have depth 1.
structure: Result<Structure>The parsed contents, or the specific error (including unsupported format). Malformed or unsupported children do not hide other siblings.
Implementations§
Source§impl EmbeddedAsset
impl EmbeddedAsset
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for EmbeddedAsset
impl !UnwindSafe for EmbeddedAsset
impl Forget for EmbeddedAsset
impl Freeze for EmbeddedAsset
impl Move for EmbeddedAsset
impl Send for EmbeddedAsset
impl Sync for EmbeddedAsset
impl Unpin for EmbeddedAsset
impl UnsafeUnpin for EmbeddedAsset
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