pub struct ComponentDescriptor<T: Default + ToFromPaxAny + 'static> {
pub type_id: &'static str,
pub property_scope_descriptors: &'static [PropertyScopeDescriptor<T>],
pub property_descriptors: &'static [ComponentPropertyDescriptor<T>],
pub handler_descriptors: &'static [HandlerDescriptor],
pub instantiate: fn(InstantiationArgs) -> Rc<dyn InstanceNode>,
/* private fields */
}Fields§
§type_id: &'static str§property_scope_descriptors: &'static [PropertyScopeDescriptor<T>]§property_descriptors: &'static [ComponentPropertyDescriptor<T>]§handler_descriptors: &'static [HandlerDescriptor]§instantiate: fn(InstantiationArgs) -> Rc<dyn InstanceNode>Implementations§
Source§impl<T: Default + ToFromPaxAny + 'static> ComponentDescriptor<T>
impl<T: Default + ToFromPaxAny + 'static> ComponentDescriptor<T>
pub const fn new( type_id: &'static str, property_scope_descriptors: &'static [PropertyScopeDescriptor<T>], property_descriptors: &'static [ComponentPropertyDescriptor<T>], handler_descriptors: &'static [HandlerDescriptor], instantiate: fn(InstantiationArgs) -> Rc<dyn InstanceNode>, ) -> Self
Auto Trait Implementations§
impl<T> Freeze for ComponentDescriptor<T>where
&'static [PropertyScopeDescriptor<T>]: Freeze,
&'static [ComponentPropertyDescriptor<T>]: Freeze,
PhantomData<fn(&T)>: Freeze,
impl<T> RefUnwindSafe for ComponentDescriptor<T>where
&'static [PropertyScopeDescriptor<T>]: RefUnwindSafe,
&'static [ComponentPropertyDescriptor<T>]: RefUnwindSafe,
PhantomData<fn(&T)>: RefUnwindSafe,
impl<T> Send for ComponentDescriptor<T>where
&'static [PropertyScopeDescriptor<T>]: Send,
&'static [ComponentPropertyDescriptor<T>]: Send,
PhantomData<fn(&T)>: Send,
impl<T> Sync for ComponentDescriptor<T>where
&'static [PropertyScopeDescriptor<T>]: Sync,
&'static [ComponentPropertyDescriptor<T>]: Sync,
PhantomData<fn(&T)>: Sync,
impl<T> Unpin for ComponentDescriptor<T>where
&'static [PropertyScopeDescriptor<T>]: Unpin,
&'static [ComponentPropertyDescriptor<T>]: Unpin,
PhantomData<fn(&T)>: Unpin,
impl<T> UnsafeUnpin for ComponentDescriptor<T>where
&'static [PropertyScopeDescriptor<T>]: UnsafeUnpin,
&'static [ComponentPropertyDescriptor<T>]: UnsafeUnpin,
PhantomData<fn(&T)>: UnsafeUnpin,
impl<T> UnwindSafe for ComponentDescriptor<T>where
&'static [PropertyScopeDescriptor<T>]: UnwindSafe,
&'static [ComponentPropertyDescriptor<T>]: UnwindSafe,
PhantomData<fn(&T)>: 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
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.