Enum orbtk_utils::Expression
source · [−]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
sourceimpl Clone for Expression
impl Clone for Expression
sourcefn clone(&self) -> Expression
fn clone(&self) -> Expression
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Expression
impl Debug for Expression
sourceimpl Default for Expression
impl Default for Expression
sourceimpl From<&'_ str> for Expression
impl From<&'_ str> for Expression
sourcefn from(s: &str) -> Expression
fn from(s: &str) -> Expression
Converts to this type from the input type.
sourceimpl From<Expression> for Number
impl From<Expression> for Number
sourcefn from(e: Expression) -> Self
fn from(e: Expression) -> Self
Converts to this type from the input type.
sourceimpl From<String> for Expression
impl From<String> for Expression
sourcefn from(s: String) -> Expression
fn from(s: String) -> Expression
Converts to this type from the input type.
sourceimpl PartialEq<Expression> for Expression
impl PartialEq<Expression> for Expression
sourcefn eq(&self, other: &Expression) -> bool
fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Expression) -> bool
fn ne(&self, other: &Expression) -> bool
This method tests for !=
.
sourceimpl PartialOrd<Expression> for Expression
impl PartialOrd<Expression> for Expression
sourcefn partial_cmp(&self, other: &Expression) -> Option<Ordering>
fn partial_cmp(&self, other: &Expression) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl StructuralPartialEq for Expression
Auto Trait Implementations
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more