#[non_exhaustive]pub struct BakedFile {
pub path: String,
pub shown: String,
pub kinds: Vec<&'static str>,
pub source: usize,
}Expand description
One file of a Baked pack.
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.path: StringIts path.
shown: StringIts source as messages show it (Bundle::display_path), under
the layer it was read from (assets@playdate/hero.png).
kinds: Vec<&'static str>The kinds it was baked as; none if it went in as its own bytes.
source: usizeIts source’s bytes.
Trait Implementations§
impl Eq for BakedFile
impl StructuralPartialEq for BakedFile
Auto Trait Implementations§
impl Freeze for BakedFile
impl RefUnwindSafe for BakedFile
impl Send for BakedFile
impl Sync for BakedFile
impl Unpin for BakedFile
impl UnsafeUnpin for BakedFile
impl UnwindSafe for BakedFile
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