pub struct ComponentPropertyDescriptor<T> {
pub name: &'static str,
pub apply_entries: fn(&mut T, &[RuntimeResolvedPropertyEntry], &Rc<RuntimePropertiesStackFrame>),
/* private fields */
}Expand description
Runtime descriptor for applying all resolved layers of a generated component property.
Fields§
§name: &'static strProperty name as it appears in Pax templates and settings.
apply_entries: fn(&mut T, &[RuntimeResolvedPropertyEntry], &Rc<RuntimePropertiesStackFrame>)Generated applicator for all resolved layers of this property.
Implementations§
Source§impl<T> ComponentPropertyDescriptor<T>
impl<T> ComponentPropertyDescriptor<T>
Sourcepub const fn new(
name: &'static str,
apply_entries: fn(&mut T, &[RuntimeResolvedPropertyEntry], &Rc<RuntimePropertiesStackFrame>),
) -> Self
pub const fn new( name: &'static str, apply_entries: fn(&mut T, &[RuntimeResolvedPropertyEntry], &Rc<RuntimePropertiesStackFrame>), ) -> Self
Creates a descriptor for a generated component property.
Auto Trait Implementations§
impl<T> Freeze for ComponentPropertyDescriptor<T>where
fn(&mut T, &[RuntimeResolvedPropertyEntry], &Rc<RuntimePropertiesStackFrame>): Freeze,
PhantomData<fn(&T)>: Freeze,
impl<T> RefUnwindSafe for ComponentPropertyDescriptor<T>where
fn(&mut T, &[RuntimeResolvedPropertyEntry], &Rc<RuntimePropertiesStackFrame>): RefUnwindSafe,
PhantomData<fn(&T)>: RefUnwindSafe,
impl<T> Send for ComponentPropertyDescriptor<T>where
fn(&mut T, &[RuntimeResolvedPropertyEntry], &Rc<RuntimePropertiesStackFrame>): Send,
PhantomData<fn(&T)>: Send,
impl<T> Sync for ComponentPropertyDescriptor<T>where
fn(&mut T, &[RuntimeResolvedPropertyEntry], &Rc<RuntimePropertiesStackFrame>): Sync,
PhantomData<fn(&T)>: Sync,
impl<T> Unpin for ComponentPropertyDescriptor<T>where
fn(&mut T, &[RuntimeResolvedPropertyEntry], &Rc<RuntimePropertiesStackFrame>): Unpin,
PhantomData<fn(&T)>: Unpin,
impl<T> UnsafeUnpin for ComponentPropertyDescriptor<T>where
fn(&mut T, &[RuntimeResolvedPropertyEntry], &Rc<RuntimePropertiesStackFrame>): UnsafeUnpin,
PhantomData<fn(&T)>: UnsafeUnpin,
impl<T> UnwindSafe for ComponentPropertyDescriptor<T>where
fn(&mut T, &[RuntimeResolvedPropertyEntry], &Rc<RuntimePropertiesStackFrame>): 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.