#[non_exhaustive]pub struct Decoded<'a> {
pub kind: &'static str,
pub path: &'a str,
pub bytes: usize,
pub ok: bool,
}Expand description
One decode the registry made (Formats::decode), as a
DecodeWatch is told it. Build it with Decoded::new (ADR-0039).
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.kind: &'static strThe kind decoded: its AssetKind::NAME, "image", "palette".
path: &'a strThe file’s path in its bundle (AssetPath::path).
bytes: usizeThe file’s size, in bytes.
ok: boolWhether a format read it.
Implementations§
Trait Implementations§
impl<'a> Copy for Decoded<'a>
impl<'a> Eq for Decoded<'a>
impl<'a> StructuralPartialEq for Decoded<'a>
Auto Trait Implementations§
impl<'a> Freeze for Decoded<'a>
impl<'a> RefUnwindSafe for Decoded<'a>
impl<'a> Send for Decoded<'a>
impl<'a> Sync for Decoded<'a>
impl<'a> Unpin for Decoded<'a>
impl<'a> UnsafeUnpin for Decoded<'a>
impl<'a> UnwindSafe for Decoded<'a>
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