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]

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: Debug> Debug for OwnedEnforcedConstraint<M>[src]

impl<M: Default> Default 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<M: PartialEq> PartialEq<OwnedEnforcedConstraint<M>> for OwnedEnforcedConstraint<M>[src]

impl<M> StructuralEq for OwnedEnforcedConstraint<M>[src]

impl<M> StructuralPartialEq for OwnedEnforcedConstraint<M>[src]

impl<M: Vertex> Vertex for OwnedEnforcedConstraint<M>[src]

Auto Trait Implementations

impl<M> RefUnwindSafe for OwnedEnforcedConstraint<M> where
    M: RefUnwindSafe

impl<M> Send for OwnedEnforcedConstraint<M> where
    M: Send

impl<M> Sync for OwnedEnforcedConstraint<M> where
    M: Sync

impl<M> Unpin for OwnedEnforcedConstraint<M> where
    M: Unpin

impl<M> UnwindSafe for OwnedEnforcedConstraint<M> where
    M: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.