ModelTypes
struct · ferroui-base · v0.5.0
struct ModelTypes
The per-thread table of model type metadata.
Members
register
fn register<T: PartialEq + 'static>(describe: impl FnOnce(ModelTypeBuilder<T>) -> ModelTypeBuilder<T>)
Registers (or replaces) the metadata of T.
register_notifying_collection
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.
is_registered
fn is_registered(id: TypeId) -> bool
find
fn find(value: &dyn AnyValue) -> Option<Rc<ModelType>>
The metadata of the type of value, if it was registered.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.