pub struct Compiled {
pub outputs: Vec<(String, Vec<u8>)>,
pub sources: BTreeMap<String, String>,
pub refs: Refs,
pub warnings: Vec<Diagnostic>,
pub files: usize,
}Expand description
Everything yog build makes of a mod’s resources.
Fields§
§outputs: Vec<(String, Vec<u8>)>Files to add to the .yog (lang JSON, images, sounds, sounds.json) —
they replace a hand-written asset at the same path (merged into them).
The files it made: (path in the .yog, bytes).
sources: BTreeMap<String, String><Set> → generated Rust source.
refs: RefsWhat screens and yog.toml can refer to (@<Set>.<name>).
warnings: Vec<Diagnostic>What to warn of.
files: usizeNumber of .yres files read.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Compiled
impl RefUnwindSafe for Compiled
impl Send for Compiled
impl Sync for Compiled
impl Unpin for Compiled
impl UnsafeUnpin for Compiled
impl UnwindSafe for Compiled
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