Struct hotdrink_rs::planner::OwnedEnforcedConstraint [−][src]
pub struct OwnedEnforcedConstraint<M> { /* fields omitted */ }
A constraint with a String
name
that has been enforced with method
.
Implementations
impl<M> OwnedEnforcedConstraint<M>
[src]
impl<M> OwnedEnforcedConstraint<M>
[src]pub fn new<S: Into<String>>(name: S, method: M) -> Self
[src]
Creates a new enforced constraint with name name
that is enforced by method
.
pub fn name(&self) -> &str
[src]
Returns a reference to the name of the constraint.
pub fn method(&self) -> &M
[src]
Returns a reference to the method that enforces the constraint.
Trait Implementations
impl<M: Clone> Clone for OwnedEnforcedConstraint<M>
[src]
impl<M: Clone> Clone for OwnedEnforcedConstraint<M>
[src]fn clone(&self) -> OwnedEnforcedConstraint<M>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<M: Debug> Debug for OwnedEnforcedConstraint<M>
[src]
impl<M: Debug> Debug for OwnedEnforcedConstraint<M>
[src]impl<M: Default> Default for OwnedEnforcedConstraint<M>
[src]
impl<M: Default> Default for OwnedEnforcedConstraint<M>
[src]fn default() -> OwnedEnforcedConstraint<M>
[src]
impl<M: Eq> Eq for OwnedEnforcedConstraint<M>
[src]
impl<M: Eq> Eq for OwnedEnforcedConstraint<M>
[src]impl<'a, M: Clone> From<EnforcedConstraint<'a, M>> for OwnedEnforcedConstraint<M>
[src]
impl<'a, M: Clone> From<EnforcedConstraint<'a, M>> for OwnedEnforcedConstraint<M>
[src]fn from(satisfied_constraint: EnforcedConstraint<'a, M>) -> Self
[src]
impl<M: PartialEq> PartialEq<OwnedEnforcedConstraint<M>> for OwnedEnforcedConstraint<M>
[src]
impl<M: PartialEq> PartialEq<OwnedEnforcedConstraint<M>> for OwnedEnforcedConstraint<M>
[src]fn eq(&self, other: &OwnedEnforcedConstraint<M>) -> bool
[src]
fn ne(&self, other: &OwnedEnforcedConstraint<M>) -> bool
[src]
impl<M> StructuralEq for OwnedEnforcedConstraint<M>
[src]
impl<M> StructuralEq for OwnedEnforcedConstraint<M>
[src]impl<M> StructuralPartialEq for OwnedEnforcedConstraint<M>
[src]
impl<M> StructuralPartialEq for OwnedEnforcedConstraint<M>
[src]Auto Trait Implementations
impl<M> RefUnwindSafe for OwnedEnforcedConstraint<M> where
M: RefUnwindSafe,
impl<M> RefUnwindSafe for OwnedEnforcedConstraint<M> where
M: RefUnwindSafe,
impl<M> Send for OwnedEnforcedConstraint<M> where
M: Send,
impl<M> Send for OwnedEnforcedConstraint<M> where
M: Send,
impl<M> Sync for OwnedEnforcedConstraint<M> where
M: Sync,
impl<M> Sync for OwnedEnforcedConstraint<M> where
M: Sync,
impl<M> Unpin for OwnedEnforcedConstraint<M> where
M: Unpin,
impl<M> Unpin for OwnedEnforcedConstraint<M> where
M: Unpin,
impl<M> UnwindSafe for OwnedEnforcedConstraint<M> where
M: UnwindSafe,
impl<M> UnwindSafe for OwnedEnforcedConstraint<M> where
M: UnwindSafe,