pub enum Optimization {
Minimize,
Maximize,
}Expand description
Variants§
Minimize
The associated metric should be minimized.
Maximize
The associated metric should be maximized.
Trait Implementations§
Source§impl Clone for Optimization
impl Clone for Optimization
impl Copy for Optimization
Source§impl Debug for Optimization
impl Debug for Optimization
Source§impl<'de> Deserialize<'de> for Optimization
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Optimization
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for Optimization
impl Display for Optimization
impl Eq for Optimization
Source§impl Parser for Optimization
Available on crate feature parser only.
impl Parser for Optimization
Available on crate feature
parser only.Source§type Item = Optimization
type Item = Optimization
The parsed value;
Self except for
DurationConstraint, which may be empty.Source§impl PartialEq for Optimization
impl PartialEq for Optimization
Source§impl Serialize for Optimization
Available on crate feature serde only.
impl Serialize for Optimization
Available on crate feature
serde only.impl StructuralPartialEq for Optimization
Source§impl TryFrom<&str> for Optimization
impl TryFrom<&str> for Optimization
Source§impl Visitor<Optimization, RcDoc<'static>> for PrettyRenderer
Available on crate feature pretty only.
impl Visitor<Optimization, RcDoc<'static>> for PrettyRenderer
Available on crate feature
pretty only.Source§fn visit(&self, value: &Optimization) -> RcDoc<'static>
fn visit(&self, value: &Optimization) -> RcDoc<'static>
Visits
value and returns the result.Auto Trait Implementations§
impl Forget for Optimization
impl Freeze for Optimization
impl Move for Optimization
impl RefUnwindSafe for Optimization
impl Send for Optimization
impl Sync for Optimization
impl Unpin for Optimization
impl UnsafeUnpin for Optimization
impl UnwindSafe for Optimization
Blanket Implementations§
Source§impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
Source§fn accept_mut(&self, v: &mut V) -> O
fn accept_mut(&self, v: &mut V) -> O
Lets the mutable visitor
v visit self.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Pretty for Twhere
T: PrettyVisit,
impl<T> Pretty for Twhere
T: PrettyVisit,
Source§impl<T> PrettyVisit for T
impl<T> PrettyVisit for T
Source§fn to_doc(&self, r: &PrettyRenderer) -> RcDoc<'static>
fn to_doc(&self, r: &PrettyRenderer) -> RcDoc<'static>
Available on crate feature
pretty only.Builds the document for
self with the renderer r.