pub struct TypeFieldDescriptor<T> {
pub name: &'static str,
pub apply: fn(&mut T, &ValueDefinition, &Rc<RuntimePropertiesStackFrame>),
pub dependency: Option<fn(&T) -> UntypedProperty>,
pub touch: Option<fn(&T)>,
/* private fields */
}Fields§
§name: &'static str§apply: fn(&mut T, &ValueDefinition, &Rc<RuntimePropertiesStackFrame>)§dependency: Option<fn(&T) -> UntypedProperty>§touch: Option<fn(&T)>Implementations§
Source§impl<T> TypeFieldDescriptor<T>
impl<T> TypeFieldDescriptor<T>
pub const fn new( name: &'static str, apply: fn(&mut T, &ValueDefinition, &Rc<RuntimePropertiesStackFrame>), ) -> TypeFieldDescriptor<T>
pub const fn with_property_dependency( name: &'static str, apply: fn(&mut T, &ValueDefinition, &Rc<RuntimePropertiesStackFrame>), dependency: fn(&T) -> UntypedProperty, touch: fn(&T), ) -> TypeFieldDescriptor<T>
Auto Trait Implementations§
impl<T> Freeze for TypeFieldDescriptor<T>where
fn(&mut T, &ValueDefinition, &Rc<RuntimePropertiesStackFrame>): Freeze,
Option<fn(&T) -> UntypedProperty>: Freeze,
Option<fn(&T)>: Freeze,
PhantomData<fn(&T)>: Freeze,
impl<T> RefUnwindSafe for TypeFieldDescriptor<T>where
fn(&mut T, &ValueDefinition, &Rc<RuntimePropertiesStackFrame>): RefUnwindSafe,
Option<fn(&T) -> UntypedProperty>: RefUnwindSafe,
Option<fn(&T)>: RefUnwindSafe,
PhantomData<fn(&T)>: RefUnwindSafe,
impl<T> Send for TypeFieldDescriptor<T>where
fn(&mut T, &ValueDefinition, &Rc<RuntimePropertiesStackFrame>): Send,
Option<fn(&T) -> UntypedProperty>: Send,
Option<fn(&T)>: Send,
PhantomData<fn(&T)>: Send,
impl<T> Sync for TypeFieldDescriptor<T>where
fn(&mut T, &ValueDefinition, &Rc<RuntimePropertiesStackFrame>): Sync,
Option<fn(&T) -> UntypedProperty>: Sync,
Option<fn(&T)>: Sync,
PhantomData<fn(&T)>: Sync,
impl<T> Unpin for TypeFieldDescriptor<T>where
fn(&mut T, &ValueDefinition, &Rc<RuntimePropertiesStackFrame>): Unpin,
Option<fn(&T) -> UntypedProperty>: Unpin,
Option<fn(&T)>: Unpin,
PhantomData<fn(&T)>: Unpin,
impl<T> UnsafeUnpin for TypeFieldDescriptor<T>where
fn(&mut T, &ValueDefinition, &Rc<RuntimePropertiesStackFrame>): UnsafeUnpin,
Option<fn(&T) -> UntypedProperty>: UnsafeUnpin,
Option<fn(&T)>: UnsafeUnpin,
PhantomData<fn(&T)>: UnsafeUnpin,
impl<T> UnwindSafe for TypeFieldDescriptor<T>where
fn(&mut T, &ValueDefinition, &Rc<RuntimePropertiesStackFrame>): UnwindSafe,
Option<fn(&T) -> UntypedProperty>: UnwindSafe,
Option<fn(&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.