pub struct MetricSpec {
pub optimization: Optimization,
pub expr: NumericExpr,
}Expand description
The :metric specification combining optimization direction and expression.
Fields§
§optimization: Optimization§expr: NumericExprTrait Implementations§
Source§impl Clone for MetricSpec
impl Clone for MetricSpec
Source§fn clone(&self) -> MetricSpec
fn clone(&self) -> MetricSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MetricSpec
impl Debug for MetricSpec
Source§impl PartialEq for MetricSpec
impl PartialEq for MetricSpec
Source§fn eq(&self, other: &MetricSpec) -> bool
fn eq(&self, other: &MetricSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MetricSpec
impl Serialize for MetricSpec
impl StructuralPartialEq for MetricSpec
Auto Trait Implementations§
impl Freeze for MetricSpec
impl RefUnwindSafe for MetricSpec
impl Send for MetricSpec
impl Sync for MetricSpec
impl Unpin for MetricSpec
impl UnsafeUnpin for MetricSpec
impl UnwindSafe for MetricSpec
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