FerroObjectHandles
struct · ferroui-reactiveui-controls · v0.5.0
struct FerroObjectHandles
The registry of the types that stand for a FerroUI object in the untyped values of ReactiveUI, and the lookup of the object behind such a value.
Deviation (DEVIATIONS.md, ReactiveUI controls): upstream tests an untyped object with
is FerroObject; Rust cannot ask a dyn Any whether it is a class of the object model, so
the handles of the classes are recognised through the type model of the framework and other
types are registered.
Members
register
fn register<H: 'static>(object_of: fn(&H) -> Ref<FerroObject>)
Registers H as a type that stands for a FerroUI object: object_of gives the object
behind a value of it. A view that wraps its control (struct MyView(Ref<UserControl>))
registers itself so that the activation fetcher and the property observer see the control.
register_class
fn register_class<T: ObjectType>()
Registers the class T itself (its struct, as an Rc<T> that is the allocation of the
object) as a type that stands for its object: a class that implements a trait of ReactiveUI
on its struct (IActivatableView) is seen through it.
object_of
fn object_of(value: &dyn Any) -> Option<Ref<FerroObject>>
The FerroUI object value stands for, or None when it is not one (value as FerroObject).
handle_of
fn handle_of<T: ObjectType>(object: &Ref<T>) -> Rc<dyn Any>
The untyped form of object that the integration gives ReactiveUI: its handle as a
Ref<FerroObject> in an Rc<dyn Any>.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.