#[repr(C, u8)]pub enum ComponentDefaultValue {
}Expand description
Default value for a component field.
Variants§
None
No default value (field is required)
String(AzString)
String literal default
Bool(bool)
Boolean default
I32(i32)
i32 default
I64(i64)
i64 default
U32(u32)
u32 default
U64(u64)
u64 default
Usize(usize)
usize default
F32(f32)
f32 default
F64(f64)
f64 default
ColorU(ColorU)
ColorU default
ComponentInstance(ComponentInstanceDefault)
Default is an instance of another component
CallbackFnPointer(AzString)
Default callback function pointer name
Json(AzString)
JSON string representing a complex default value
Trait Implementations§
Source§impl Clone for ComponentDefaultValue
impl Clone for ComponentDefaultValue
Source§fn clone(&self) -> ComponentDefaultValue
fn clone(&self) -> ComponentDefaultValue
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 ComponentDefaultValue
impl Debug for ComponentDefaultValue
Source§impl PartialEq for ComponentDefaultValue
impl PartialEq for ComponentDefaultValue
Source§fn eq(&self, other: &ComponentDefaultValue) -> bool
fn eq(&self, other: &ComponentDefaultValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ComponentDefaultValue
Auto Trait Implementations§
impl Freeze for ComponentDefaultValue
impl RefUnwindSafe for ComponentDefaultValue
impl Send for ComponentDefaultValue
impl Sync for ComponentDefaultValue
impl Unpin for ComponentDefaultValue
impl UnsafeUnpin for ComponentDefaultValue
impl UnwindSafe for ComponentDefaultValue
Blanket Implementations§
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