pub struct LoadedWorld {
pub assets: Vec<WorldJsonlAsset>,
pub injected: Vec<InjectedAsset>,
pub generated: Vec<GeneratedAsset>,
pub shadowed: Vec<ShadowedAsset>,
pub authored: Vec<String>,
}Expand description
A world.jsonl that has been loaded, structurally validated, expanded, and semantically checked: everything the compile stage needs, computed once.
Fields§
§assets: Vec<WorldJsonlAsset>The same assets as typed entries, consumed by the build pipeline.
injected: Vec<InjectedAsset>Assets added by the injection passes (companions, engine defaults), recorded in world-lock.json so the user can see and override them.
generated: Vec<GeneratedAsset>Assets a macro expansion produced, paired with the authored asset that produced them, so listings can group them by source.
shadowed: Vec<ShadowedAsset>Generated assets the world declares a patch of; the merged result is in
assets and each record carries the pre-merge generated args.
Names declared in the world file itself (pre-expansion), for provenance listings.
Implementations§
Source§impl LoadedWorld
impl LoadedWorld
Sourcepub fn provenance(&self, name: &str) -> Provenance
pub fn provenance(&self, name: &str) -> Provenance
Where the asset called name in this expanded world came from.
Auto Trait Implementations§
impl Freeze for LoadedWorld
impl RefUnwindSafe for LoadedWorld
impl Send for LoadedWorld
impl Sync for LoadedWorld
impl Unpin for LoadedWorld
impl UnsafeUnpin for LoadedWorld
impl UnwindSafe for LoadedWorld
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
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more