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)>>,
}
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
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.