[][src]Trait mop_blocks::Cstr

pub trait Cstr<S> {
    fn violations(&self, solution: &S) -> usize;

    fn reasons(&self, _: &S) -> String { ... }
}

Constraint

Types

  • S: Solution

Required methods

fn violations(&self, solution: &S) -> usize

Loading content...

Provided methods

fn reasons(&self, _: &S) -> String

Loading content...

Implementations on Foreign Types

impl<C, S> Cstr<S> for Box<C> where
    C: Cstr<S>, 
[src]

Loading content...

Implementors

impl<C: ?Sized, S, '_> Cstr<S> for &'_ C where
    C: Cstr<S>, 
[src]

impl<S> Cstr<S> for (fn(_: &S) -> String, fn(_: &S) -> usize)[src]

impl<S> Cstr<S> for fn(_: &S) -> usize[src]

Loading content...