pub enum CompoundExprValue {
PerUnit(ExprValue),
Total(ExprValue),
PerUnitAndTotal(ExprValue, ExprValue),
}
Expand description
An ExprValue
which quantifies a total or per-unit, or both.
Variants§
Trait Implementations§
source§impl Clone for CompoundExprValue
impl Clone for CompoundExprValue
source§fn clone(&self) -> CompoundExprValue
fn clone(&self) -> CompoundExprValue
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 CompoundExprValue
impl Debug for CompoundExprValue
source§impl Display for CompoundExprValue
impl Display for CompoundExprValue
source§impl PartialEq for CompoundExprValue
impl PartialEq for CompoundExprValue
source§fn eq(&self, other: &CompoundExprValue) -> bool
fn eq(&self, other: &CompoundExprValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CompoundExprValue
impl StructuralPartialEq for CompoundExprValue
Auto Trait Implementations§
impl Freeze for CompoundExprValue
impl RefUnwindSafe for CompoundExprValue
impl Send for CompoundExprValue
impl Sync for CompoundExprValue
impl Unpin for CompoundExprValue
impl UnwindSafe for CompoundExprValue
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