pub enum AttributeValueModel {
Null,
Bool(bool),
Int(i64),
Float(String),
Str(String),
Type(RustType),
Array(Vec<AttributeValueModel>),
}Expand description
An argument of an attribute.
Variants§
Null
Bool(bool)
Int(i64)
An integer or a character (its code point, as the metadata holds it).
Float(String)
A floating point literal, as written.
Str(String)
Type(RustType)
type(T).
Array(Vec<AttributeValueModel>)
Trait Implementations§
Source§impl Clone for AttributeValueModel
impl Clone for AttributeValueModel
Source§fn clone(&self) -> AttributeValueModel
fn clone(&self) -> AttributeValueModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AttributeValueModel
impl Debug for AttributeValueModel
impl Eq for AttributeValueModel
Source§impl PartialEq for AttributeValueModel
impl PartialEq for AttributeValueModel
impl StructuralPartialEq for AttributeValueModel
Auto Trait Implementations§
impl Freeze for AttributeValueModel
impl RefUnwindSafe for AttributeValueModel
impl Send for AttributeValueModel
impl Sync for AttributeValueModel
impl Unpin for AttributeValueModel
impl UnsafeUnpin for AttributeValueModel
impl UnwindSafe for AttributeValueModel
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