pub struct CompiledApp {
pub ir: LayoutIR,
pub scripts: Vec<CompiledScript>,
pub pages: Option<CompiledPages>,
pub fragments: FragmentTable,
pub i18n: CompiledI18n,
pub addons: Vec<Addon>,
pub unlinked: Vec<UnlinkedCapability>,
}Expand description
The precompiled application: everything the runtime needs to spawn the UI without touching the markup / CSS parser.
Fields§
§ir: LayoutIRFully-resolved layout IR: includes cascaded inline attributes plus the
combined (skin + user) stylesheet on
LayoutIR::combined_stylesheet, with <include> / @import
directives spliced away. A relative <image src> resolves against the
directory the artifact is run with; an absolute one is used as written.
scripts: Vec<CompiledScript>The app’s program split by the language that runs each part, sorted by language name. Empty when the app ships no script.
pages: Option<CompiledPages>The page set, for an app with more than one page. None for a
single-page app, which needs no routing at all.
fragments: FragmentTableEvery fragment the app declares, from markup <template> elements
and from lmn! blocks alike. The tree in Self::ir names them at
its use sites, so the table travels with it. Empty for an app that
declares none.
i18n: CompiledI18nThe app’s translation catalogues and fallback chain. Empty for an app
with no locale/ directory.
addons: Vec<Addon>What the web halves of the modules the app depends on for the target it was compiled for declare, in the order its dependencies sort: the functions its program was compiled against. A page binds them to the modules it loads, and a build-time render or a server to a body that says they run only in a browser. A desktop run reads none of it: the module libraries it loads register the same functions. Empty for an app that declares none.
unlinked: Vec<UnlinkedCapability>The optional subsystems the engine packaged with this app was linked
without, each with the builtin names that reach it. lumenc package
fills it when it relinks the engine for the app; every other build
leaves it empty. The names are opaque here: the runtime warns once
when a script calls a builtin one of them names, and reads nothing
else into them.
Trait Implementations§
Source§impl Clone for CompiledApp
impl Clone for CompiledApp
Source§fn clone(&self) -> CompiledApp
fn clone(&self) -> CompiledApp
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CompiledApp
impl Debug for CompiledApp
Source§impl Default for CompiledApp
impl Default for CompiledApp
Source§fn default() -> CompiledApp
fn default() -> CompiledApp
Source§impl<'de> Deserialize<'de> for CompiledApp
impl<'de> Deserialize<'de> for CompiledApp
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for CompiledApp
impl RefUnwindSafe for CompiledApp
impl Send for CompiledApp
impl Sync for CompiledApp
impl Unpin for CompiledApp
impl UnsafeUnpin for CompiledApp
impl UnwindSafe for CompiledApp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FromTemplate for T
impl<T> FromTemplate for T
§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates Self using default().
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
§impl<T> Template for T
impl<T> Template for T
§fn build_template(
&self,
_context: &mut TemplateContext<'_, '_>,
) -> Result<<T as Template>::Output, BevyError>
fn build_template( &self, _context: &mut TemplateContext<'_, '_>, ) -> Result<<T as Template>::Output, BevyError>
entity context to produce a [Template::Output].§fn clone_template(&self) -> T
fn clone_template(&self) -> T
Clone.