pub struct MaterializedCE {
pub component_type: String,
pub component_property_assignment_only: bool,
pub ctor_method: Option<String>,
pub ctor_args: Vec<Value>,
pub calls: Vec<(String, Vec<Value>)>,
pub named: Vec<(String, Value)>,
pub positionals: Vec<Value>,
pub deferred_block: Option<RuntimeClosure>,
pub children: Vec<CeChild>,
}Fields§
§component_type: StringComponent type name (short or full, e.g. "T" / "Transform").
component_property_assignment_only: boolWhen true, name = expr inside the CE body is captured as a named
component property instead of a lexical reassignment.
ctor_method: Option<String>First constructor call method, e.g. "position" from T.position(...).
ctor_args: Vec<Value>First constructor call args, evaluated.
calls: Vec<(String, Vec<Value>)>Remaining chained constructor calls + body builder calls, in source order.
e.g. .scale(...) after .position(...), plus fps_rotation() in the body.
named: Vec<(String, Value)>Named property assignments from the body, e.g. intensity = 0.9.
positionals: Vec<Value>String-type positional content (e.g. Text { "hello " + name }).
deferred_block: Option<RuntimeClosure>Deferred executable block payload for components that own imperative
runtime bodies, such as Keyframe.at(...) { ... }.
children: Vec<CeChild>Child component trees, in source order. Each entry is either a CE to
spawn fresh, or a pre-Registered ComponentId to splice in.
Trait Implementations§
Source§impl Clone for MaterializedCE
impl Clone for MaterializedCE
Source§fn clone(&self) -> MaterializedCE
fn clone(&self) -> MaterializedCE
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 MaterializedCE
impl Debug for MaterializedCE
Source§impl PartialEq for MaterializedCE
impl PartialEq for MaterializedCE
impl StructuralPartialEq for MaterializedCE
Auto Trait Implementations§
impl Freeze for MaterializedCE
impl RefUnwindSafe for MaterializedCE
impl Send for MaterializedCE
impl Sync for MaterializedCE
impl Unpin for MaterializedCE
impl UnsafeUnpin for MaterializedCE
impl UnwindSafe for MaterializedCE
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,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.