Struct pax_runtime::rendering::InstantiationArgs
source · pub struct InstantiationArgs {
pub prototypical_common_properties_factory: Box<dyn Fn() -> Rc<RefCell<CommonProperties>>>,
pub prototypical_properties_factory: Box<dyn Fn() -> Rc<RefCell<dyn Any>>>,
pub handler_registry: Option<Rc<RefCell<HandlerRegistry>>>,
pub children: Option<InstanceNodePtrList>,
pub component_template: Option<InstanceNodePtrList>,
pub compute_properties_fn: Option<Box<dyn Fn(&ExpandedNode, &ExpressionTable, &Globals)>>,
pub template_node_identifier: Option<UniqueTemplateNodeIdentifier>,
}Fields§
§prototypical_common_properties_factory: Box<dyn Fn() -> Rc<RefCell<CommonProperties>>>§prototypical_properties_factory: Box<dyn Fn() -> Rc<RefCell<dyn Any>>>§handler_registry: Option<Rc<RefCell<HandlerRegistry>>>§children: Option<InstanceNodePtrList>§component_template: Option<InstanceNodePtrList>§compute_properties_fn: Option<Box<dyn Fn(&ExpandedNode, &ExpressionTable, &Globals)>>used by Component instances, specifically to unwrap dyn Any properties and recurse into descendant property computation
template_node_identifier: Option<UniqueTemplateNodeIdentifier>Auto Trait Implementations§
impl !Freeze for InstantiationArgs
impl !RefUnwindSafe for InstantiationArgs
impl !Send for InstantiationArgs
impl !Sync for InstantiationArgs
impl Unpin for InstantiationArgs
impl !UnwindSafe for InstantiationArgs
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, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.