pub struct ErasedComponentDescriptor {
pub type_id: &'static str,
pub typed_descriptor: &'static (dyn Any + Sync),
pub create_properties: fn() -> PaxAny,
pub apply_defined_properties: fn(&'static (dyn Any + Sync), &mut PaxAny, &RuntimeResolvedPropertyColumns, &Rc<RuntimePropertiesStackFrame>, Option<&ExpandedNode>),
pub build_property_scope: fn(&'static (dyn Any + Sync), &PaxAny) -> HashMap<String, Variable>,
pub handler_descriptors: &'static [HandlerDescriptor],
pub instantiate: fn(InstantiationArgs) -> Rc<dyn InstanceNode>,
}Fields§
§type_id: &'static str§typed_descriptor: &'static (dyn Any + Sync)§create_properties: fn() -> PaxAny§apply_defined_properties: fn(&'static (dyn Any + Sync), &mut PaxAny, &RuntimeResolvedPropertyColumns, &Rc<RuntimePropertiesStackFrame>, Option<&ExpandedNode>)§build_property_scope: fn(&'static (dyn Any + Sync), &PaxAny) -> HashMap<String, Variable>§handler_descriptors: &'static [HandlerDescriptor]§instantiate: fn(InstantiationArgs) -> Rc<dyn InstanceNode>Implementations§
Source§impl ErasedComponentDescriptor
impl ErasedComponentDescriptor
pub const fn new( type_id: &'static str, typed_descriptor: &'static (dyn Any + Sync), create_properties: fn() -> PaxAny, apply_defined_properties: fn(&'static (dyn Any + Sync), &mut PaxAny, &RuntimeResolvedPropertyColumns, &Rc<RuntimePropertiesStackFrame>, Option<&ExpandedNode>), build_property_scope: fn(&'static (dyn Any + Sync), &PaxAny) -> HashMap<String, Variable>, handler_descriptors: &'static [HandlerDescriptor], instantiate: fn(InstantiationArgs) -> Rc<dyn InstanceNode>, ) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for ErasedComponentDescriptor
impl !UnwindSafe for ErasedComponentDescriptor
impl Freeze for ErasedComponentDescriptor
impl Send for ErasedComponentDescriptor
impl Sync for ErasedComponentDescriptor
impl Unpin for ErasedComponentDescriptor
impl UnsafeUnpin for ErasedComponentDescriptor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
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.