pub struct EngineComposition {
catalog: &'static ContentCatalog,
}Expand description
Fully linked engine composition used by native and browser hosts.
Fields§
§catalog: &'static ContentCatalogImplementations§
Source§impl EngineComposition
impl EngineComposition
Sourcepub fn initialize() -> Result<Self, ContentCatalogError>
pub fn initialize() -> Result<Self, ContentCatalogError>
Link and validate the complete engine composition.
§Errors
Returns an error if the content catalog cannot be assembled or fails validation.
fn from_catalog( catalog: &'static ContentCatalog, ) -> Result<Self, ContentCatalogError>
Sourcepub const fn catalog(self) -> &'static ContentCatalog
pub const fn catalog(self) -> &'static ContentCatalog
The validated content catalog assembled into this engine.
Sourcepub const fn build_metadata(self) -> EngineBuildMetadata
pub const fn build_metadata(self) -> EngineBuildMetadata
Deterministic metadata embedded in this engine build.
Trait Implementations§
Source§impl Clone for EngineComposition
impl Clone for EngineComposition
Source§fn clone(&self) -> EngineComposition
fn clone(&self) -> EngineComposition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EngineComposition
impl Debug for EngineComposition
impl Copy for EngineComposition
Auto Trait Implementations§
impl Freeze for EngineComposition
impl RefUnwindSafe for EngineComposition
impl Send for EngineComposition
impl Sync for EngineComposition
impl Unpin for EngineComposition
impl UnsafeUnpin for EngineComposition
impl UnwindSafe for EngineComposition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
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