pub struct ModelTypes;Expand description
The per-thread table of model type metadata.
Implementations§
Source§impl ModelTypes
impl ModelTypes
Sourcepub fn register<T: PartialEq + 'static>(
describe: impl FnOnce(ModelTypeBuilder<T>) -> ModelTypeBuilder<T>,
)
pub fn register<T: PartialEq + 'static>( describe: impl FnOnce(ModelTypeBuilder<T>) -> ModelTypeBuilder<T>, )
Registers (or replaces) the metadata of T.
Sourcepub fn register_notifying_collection<T: INotifyCollectionChanged + PartialEq + 'static>()
pub fn register_notifying_collection<T: INotifyCollectionChanged + PartialEq + 'static>()
Registers a collection type whose only metadata is its change notifications: a
collection held by value as a handle (an instantiation of the notifying list that
a typed list declaration names). An indexer of a binding path over such a
collection follows its changes. Unlike register it does not
make the type a reference type: its values are handles.
pub fn is_registered(id: TypeId) -> bool
Auto Trait Implementations§
impl Freeze for ModelTypes
impl RefUnwindSafe for ModelTypes
impl Send for ModelTypes
impl Sync for ModelTypes
impl Unpin for ModelTypes
impl UnsafeUnpin for ModelTypes
impl UnwindSafe for ModelTypes
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more