pub struct ElementModuleDefinition {
pub module_name: String,
pub elements: Vec<ElementProviderMetadata>,
}Expand description
Generated Rust-side definition for one element-provider module.
A module owns its element schemas and authoring bindings as one bootstrap unit. Host packages bind target-specific factories to the resulting element names before the first frame.
Fields§
§module_name: StringStable package/module identity used in bootstrap diagnostics.
elements: Vec<ElementProviderMetadata>Visual elements exported by this module.
Implementations§
Source§impl ElementModuleDefinition
impl ElementModuleDefinition
Sourcepub fn new(
module_name: impl Into<String>,
elements: impl IntoIterator<Item = ElementProviderMetadata>,
) -> Self
pub fn new( module_name: impl Into<String>, elements: impl IntoIterator<Item = ElementProviderMetadata>, ) -> Self
Creates an element-provider module definition.
Trait Implementations§
Source§impl Clone for ElementModuleDefinition
impl Clone for ElementModuleDefinition
Source§impl Debug for ElementModuleDefinition
impl Debug for ElementModuleDefinition
impl Eq for ElementModuleDefinition
Source§impl PartialEq for ElementModuleDefinition
impl PartialEq for ElementModuleDefinition
impl StructuralPartialEq for ElementModuleDefinition
Auto Trait Implementations§
impl Forget for ElementModuleDefinition
impl Freeze for ElementModuleDefinitionwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ElementProviderMetadata>: Freeze,
impl Move for ElementModuleDefinition
impl RefUnwindSafe for ElementModuleDefinition
impl Send for ElementModuleDefinitionwhere
RawVecInner: Send,
BoxRaw<StyleValue>: Send,
BoxRaw<CalcExpression>: Send,
BoxRaw<InsetPathValue>: Send,
Arc<KeyframesDefinition>: Send,
impl Sync for ElementModuleDefinitionwhere
RawVecInner: Sync,
BoxRaw<StyleValue>: Sync,
BoxRaw<CalcExpression>: Sync,
BoxRaw<InsetPathValue>: Sync,
Arc<KeyframesDefinition>: Sync,
impl Unpin for ElementModuleDefinitionwhere
*const u8 is !null: Unpin,
Box<StyleValue>: Unpin,
Box<CalcExpression>: Unpin,
Box<InsetPathValue>: Unpin,
Arc<KeyframesDefinition>: Unpin,
impl UnsafeUnpin for ElementModuleDefinitionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ElementProviderMetadata>: UnsafeUnpin,
impl UnwindSafe for ElementModuleDefinitionwhere
RawVecInner: UnwindSafe,
BoxRaw<StyleValue>: UnwindSafe,
BoxRaw<CalcExpression>: UnwindSafe,
BoxRaw<InsetPathValue>: UnwindSafe,
Arc<KeyframesDefinition>: UnwindSafe,
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