pub enum Value {
Str(String, Pos),
Num(f64),
Bool(bool),
Array(Vec<Value>),
Object(Vec<(String, Value)>),
Prop(String),
Theme(String, Pos),
Themed {
light: String,
dark: String,
written: String,
},
}Variants§
Str(String, Pos)
A string, and where its opening quote is: a gradient names theme colors inside one.
Num(f64)
Bool(bool)
Array(Vec<Value>)
Object(Vec<(String, Value)>)
Prop(String)
Theme(String, Pos)
theme.name, a color from the themes of the file it is written in,
and where theme starts.
Themed
A theme color bound to the themes of the file that wrote it: the
value in each theme — a color, or a gradient with the theme’s colors
in it — and the value as written, for problems. The resolver makes
these from Theme, and from strings that name theme colors, as it
reads a file; the parser never does.
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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