pub enum StyleValue {
Null,
Bool(bool),
Number(f64),
String(String),
Array(Vec<StyleValue>),
Object(Style),
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for StyleValue
impl Clone for StyleValue
Source§fn clone(&self) -> StyleValue
fn clone(&self) -> StyleValue
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 StyleValue
impl Debug for StyleValue
Source§impl Default for StyleValue
impl Default for StyleValue
Source§impl From<&str> for StyleValue
impl From<&str> for StyleValue
Source§impl From<IndexMap<String, StyleValue>> for StyleValue
impl From<IndexMap<String, StyleValue>> for StyleValue
Source§impl From<String> for StyleValue
impl From<String> for StyleValue
Source§impl From<Vec<StyleValue>> for StyleValue
impl From<Vec<StyleValue>> for StyleValue
Source§fn from(value: Vec<StyleValue>) -> Self
fn from(value: Vec<StyleValue>) -> Self
Converts to this type from the input type.
Source§impl From<bool> for StyleValue
impl From<bool> for StyleValue
Source§impl From<f32> for StyleValue
impl From<f32> for StyleValue
Source§impl From<f64> for StyleValue
impl From<f64> for StyleValue
Source§impl From<i32> for StyleValue
impl From<i32> for StyleValue
Source§impl From<i64> for StyleValue
impl From<i64> for StyleValue
Source§impl From<usize> for StyleValue
impl From<usize> for StyleValue
Source§impl PartialEq for StyleValue
impl PartialEq for StyleValue
Source§fn eq(&self, other: &StyleValue) -> bool
fn eq(&self, other: &StyleValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StyleValue
Auto Trait Implementations§
impl Freeze for StyleValue
impl RefUnwindSafe for StyleValue
impl Send for StyleValue
impl Sync for StyleValue
impl Unpin for StyleValue
impl UnsafeUnpin for StyleValue
impl UnwindSafe for StyleValue
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