pub enum Expression {
Method(String, Vec<Expression>),
Complex(Vec<Expression>),
Number(Number, String),
Color(Color),
Other(String),
}
Expand description
This object represents an expression
used to define
something. E.g. brushes are defined using an expression in there themes definition.
Variants§
Method(String, Vec<Expression>)
Complex(Vec<Expression>)
Number(Number, String)
Color(Color)
Other(String)
Implementations§
Trait Implementations§
Source§impl Clone for Expression
impl Clone for Expression
Source§fn clone(&self) -> Expression
fn clone(&self) -> Expression
Returns a copy of the value. Read more
1.0.0 · 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 Expression
impl Debug for Expression
Source§impl Default for Expression
impl Default for Expression
Source§fn default() -> Expression
fn default() -> Expression
Returns the “default value” for a type. Read more
Source§impl From<&str> for Expression
impl From<&str> for Expression
Source§fn from(s: &str) -> Expression
fn from(s: &str) -> Expression
Converts to this type from the input type.
Source§impl From<Expression> for Number
impl From<Expression> for Number
Source§fn from(e: Expression) -> Number
fn from(e: Expression) -> Number
Converts to this type from the input type.
Source§impl From<String> for Expression
impl From<String> for Expression
Source§fn from(s: String) -> Expression
fn from(s: String) -> Expression
Converts to this type from the input type.
Source§impl PartialEq for Expression
impl PartialEq for Expression
Source§impl PartialOrd for Expression
impl PartialOrd for Expression
impl StructuralPartialEq for Expression
Auto Trait Implementations§
impl Freeze for Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
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