pub enum PropValue {
Str(String),
Num(f64),
Int(i64),
Bool(bool),
Vec2(f64, f64),
Color(u8, u8, u8, u8),
}Expand description
Dynamically-typed property values supported by the engine’s scene and node model.
Variants§
Str(String)
String text value.
Num(f64)
Floating-point number.
Int(i64)
Signed integer value.
Bool(bool)
Boolean flag.
Vec2(f64, f64)
2D vector coordinate pair (x, y).
Color(u8, u8, u8, u8)
RGBA color represented as 8-bit channels (r, g, b, a).
Implementations§
Trait Implementations§
impl StructuralPartialEq for PropValue
Auto Trait Implementations§
impl Forget for PropValue
impl Freeze for PropValue
impl Move 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