Struct hotdrink_rs::planner::EnforcedConstraint[][src]

pub struct EnforcedConstraint<'a, M> { /* fields omitted */ }

A constraint with a &str name that has been enforced with method.

Implementations

impl<'a, M> EnforcedConstraint<'a, M>[src]

pub fn new(name: &'a str, method: &'a M) -> Self[src]

Constructs a new EnforcedConstraint that is enforced by method.

pub fn name(&self) -> &'a str[src]

Returns the name of the enforced constraint.

pub fn method(&self) -> &'a M[src]

Returns the method that enforces the constraint.

Trait Implementations

impl<'a, M: Clone> Clone for EnforcedConstraint<'a, M>[src]

impl<'a, M: Copy> Copy for EnforcedConstraint<'a, M>[src]

impl<'a, M: Debug> Debug for EnforcedConstraint<'a, M>[src]

impl<'a, M: Eq> Eq for EnforcedConstraint<'a, M>[src]

impl<'a, M: Clone> From<EnforcedConstraint<'a, M>> for OwnedEnforcedConstraint<M>[src]

impl<'a, M: PartialEq> PartialEq<EnforcedConstraint<'a, M>> for EnforcedConstraint<'a, M>[src]

impl<'a, M> StructuralEq for EnforcedConstraint<'a, M>[src]

impl<'a, M> StructuralPartialEq for EnforcedConstraint<'a, M>[src]

impl<'a, M: Vertex> Vertex for EnforcedConstraint<'a, M>[src]

Auto Trait Implementations

impl<'a, M> RefUnwindSafe for EnforcedConstraint<'a, M> where
    M: RefUnwindSafe

impl<'a, M> Send for EnforcedConstraint<'a, M> where
    M: Sync

impl<'a, M> Sync for EnforcedConstraint<'a, M> where
    M: Sync

impl<'a, M> Unpin for EnforcedConstraint<'a, M>

impl<'a, M> UnwindSafe for EnforcedConstraint<'a, M> where
    M: RefUnwindSafe

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.