ViewAssembly
struct · ferroui-reactiveui-controls · v0.5.0
struct ViewAssembly
The types of an application that hold its views (an assembly scanned upstream).
Members
name
name: &'static str
The name of the assembly.
new
fn new(name: &'static str) -> Self
An assembly without types.
view
fn view<VM: 'static, V: IViewForOf<VM> + 'static>(self: Self, contract: Option<&str>, activator: fn() -> Rc<V>) -> Self
Adds the view type V of the view model type VM (a class that implements
IViewFor<TViewModel>), registered under contract ([ViewContract("...")]; None for
the default), and created by activator when the service locator has no V.
other_type
fn other_type<T: ?Sized + 'static>(self: Self, is_abstract: bool) -> Self
Adds a type that is not a view (it does not implement IViewFor<TViewModel>), or an
abstract one: the registrar skips it.
types
fn types(self: &Self) -> &[ViewAssemblyType]
The types of the assembly (GetTypes()).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherDebugDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.