pub struct SetUnit {
pub value: Arc<Expression<ScalarExpr>>,
pub unit: ComplexUnit,
}Expand description
Changes the scalar’s unit.
Fields§
§value: Arc<Expression<ScalarExpr>>§unit: ComplexUnitTrait Implementations§
source§impl Kind for SetUnit
impl Kind for SetUnit
fn collect(&self, exprs: &mut Vec<usize>)
source§fn is_trivial(&self) -> bool
fn is_trivial(&self) -> bool
Trivial expressions are ones that don’t require any calculations being made.
Trivial expressions should not be cached, as it is much faster to evaluate them
than to get their caches.
source§fn evaluate_weights(&self) -> Weights
fn evaluate_weights(&self) -> Weights
Evaluates weights.
Auto Trait Implementations§
impl RefUnwindSafe for SetUnit
impl Send for SetUnit
impl Sync for SetUnit
impl Unpin for SetUnit
impl UnwindSafe for SetUnit
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