pub enum ViewResolutionMode {
Exact,
ExactThenBaseTypes,
ExactThenInterfaces,
ExactThenBaseTypesThenInterfaces,
ExactThenInterfacesThenBaseTypes,
}Expand description
The fallback precedence the generated adapters are compiled with
(generated_adapter_resolution_mode of static_view_locator).
The generator flattens the precedence into the table of the views: a view model type of the crate that has no view of its own gets the view of its nearest mapped base class or of its mapped trait, in the order the mode states.
Variants§
Exact
The exact run-time type only.
ExactThenBaseTypes
The exact type, then the nearest mapped base class.
ExactThenInterfaces
The exact type, then the nearest mapped trait.
ExactThenBaseTypesThenInterfaces
The exact type, the mapped base classes, then the mapped traits. The default.
ExactThenInterfacesThenBaseTypes
The exact type, the mapped traits, then the mapped base classes.
Trait Implementations§
Source§impl Clone for ViewResolutionMode
impl Clone for ViewResolutionMode
impl Copy for ViewResolutionMode
Source§impl Debug for ViewResolutionMode
impl Debug for ViewResolutionMode
Source§impl Default for ViewResolutionMode
impl Default for ViewResolutionMode
impl Eq for ViewResolutionMode
Source§impl Hash for ViewResolutionMode
impl Hash for ViewResolutionMode
Source§impl PartialEq for ViewResolutionMode
impl PartialEq for ViewResolutionMode
impl StructuralPartialEq for ViewResolutionMode
Auto Trait Implementations§
impl Freeze for ViewResolutionMode
impl RefUnwindSafe for ViewResolutionMode
impl Send for ViewResolutionMode
impl Sync for ViewResolutionMode
impl Unpin for ViewResolutionMode
impl UnsafeUnpin for ViewResolutionMode
impl UnwindSafe for ViewResolutionMode
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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