pub struct ValueTypeModel {
pub registration: String,
pub types: Vec<RustType>,
}Expand description
A registration of Rust types with the untyped value conversions that a function of a
crate makes with its types stated (ValueTypes::register_nullable::<T>()): what
decides, next to the casts and the declarations, whether a value of one Rust type is a
value of another, and which types are nullable forms.
Fields§
§registration: StringThe registration function, without register_: nullable (Option<T> is the
nullable form of T), reference (T is a shared object held as Rc<T> and
Option<Rc<T>>), object (Ref<T> is the handle of the class T), element_ref
(ElementRef<T> of the class T), interface (the handles of the class T
convert to the contract handle I), upcast (the handles of the class T to the
ones of its base), deref (a reference to the first type coerces to a reference
to the second: no conversion, the fact generated code relies on when it passes a
named collection where a member of the list it derives from takes the list).
types: Vec<RustType>The type arguments of the call, in order.
Trait Implementations§
Source§impl Clone for ValueTypeModel
impl Clone for ValueTypeModel
Source§fn clone(&self) -> ValueTypeModel
fn clone(&self) -> ValueTypeModel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ValueTypeModel
impl Debug for ValueTypeModel
impl Eq for ValueTypeModel
Source§impl PartialEq for ValueTypeModel
impl PartialEq for ValueTypeModel
impl StructuralPartialEq for ValueTypeModel
Auto Trait Implementations§
impl Freeze for ValueTypeModel
impl RefUnwindSafe for ValueTypeModel
impl Send for ValueTypeModel
impl Sync for ValueTypeModel
impl Unpin for ValueTypeModel
impl UnsafeUnpin for ValueTypeModel
impl UnwindSafe for ValueTypeModel
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more