pub enum PropertyDefault<'a> {
Float(f32),
Bool(bool),
Color(Color),
Vec2(Vec2),
LatLng(LatLng),
RotationDegrees(f32),
String(&'a str),
Enum {
variants: &'a [&'a str],
default_index: u32,
},
}Expand description
Typed default value for a custom style property.
Variants§
Float(f32)
Bool(bool)
Color(Color)
Vec2(Vec2)
LatLng(LatLng)
RotationDegrees(f32)
String(&'a str)
Enum
Trait Implementations§
Source§impl<'a> Clone for PropertyDefault<'a>
impl<'a> Clone for PropertyDefault<'a>
impl<'a> Copy for PropertyDefault<'a>
Auto Trait Implementations§
impl<'a> Forget for PropertyDefault<'a>
impl<'a> Freeze for PropertyDefault<'a>
impl<'a> Move for PropertyDefault<'a>
impl<'a> RefUnwindSafe for PropertyDefault<'a>
impl<'a> Send for PropertyDefault<'a>
impl<'a> Sync for PropertyDefault<'a>
impl<'a> Unpin for PropertyDefault<'a>
impl<'a> UnsafeUnpin for PropertyDefault<'a>
impl<'a> UnwindSafe for PropertyDefault<'a>
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