pub struct CastModel {
pub from: RustType,
pub to: RustType,
}Expand description
A cast a crate registers between two Rust types (ValueTypes::register_cast::<From, To>(..)):
a value of the one is a value of the other. A collection that declares an
instantiation of the notifying list as its base: is that list only when the cast from
the collection to the list is registered.
Fields§
§from: RustType§to: RustTypeTrait Implementations§
impl Eq for CastModel
impl StructuralPartialEq for CastModel
Auto Trait Implementations§
impl Freeze for CastModel
impl RefUnwindSafe for CastModel
impl Send for CastModel
impl Sync for CastModel
impl Unpin for CastModel
impl UnsafeUnpin for CastModel
impl UnwindSafe for CastModel
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