pub enum StyleValue<'a> {
Number(f32),
Str(&'a str),
Null,
}Expand description
A style property value as read from JS.
Variants§
Number(f32)
A number.
Str(&'a str)
A string.
Null
null / undefined: resets the property to its default.
Trait Implementations§
Source§impl<'a> Clone for StyleValue<'a>
impl<'a> Clone for StyleValue<'a>
impl<'a> Copy for StyleValue<'a>
Auto Trait Implementations§
impl<'a> Forget for StyleValue<'a>
impl<'a> Freeze for StyleValue<'a>
impl<'a> Move for StyleValue<'a>
impl<'a> RefUnwindSafe for StyleValue<'a>
impl<'a> Send for StyleValue<'a>
impl<'a> Sync for StyleValue<'a>
impl<'a> Unpin for StyleValue<'a>
impl<'a> UnsafeUnpin for StyleValue<'a>where
&'a str: UnsafeUnpin,
impl<'a> UnwindSafe for StyleValue<'a>where
&'a str: UnwindSafe,
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