pub enum PropValue {
String(String),
F32(f32),
F64(f64),
I32(i32),
Bool(bool),
Color(Color),
Rect {
x: f32,
y: f32,
width: f32,
height: f32,
},
Null,
}Expand description
A single property value.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PropValue
impl<'de> Deserialize<'de> for PropValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PropValue
impl RefUnwindSafe for PropValue
impl Send for PropValue
impl Sync for PropValue
impl Unpin for PropValue
impl UnsafeUnpin for PropValue
impl UnwindSafe for PropValue
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