Struct hotdrink_rs::model::Method[][src]

pub struct Method<T> { /* fields omitted */ }

A method for enforcing a Constraint. It usually has a set of input-variables, a set of output-variables, and a function for creating the outputs from the inputs.

Trait Implementations

impl<T> Clone for Method<T>[src]

impl<T> Debug for Method<T>[src]

impl<T> Eq for Method<T>[src]

impl<T> MethodSpec for Method<T>[src]

type Arg = T

The input and output type of the method.

fn apply(&self, input: Vec<Arc<T>>) -> MethodResult<Arc<T>>[src]

Apply the inner function of this method

impl<T> PartialEq<Method<T>> for Method<T>[src]

impl<T> Vertex for Method<T>[src]

fn inputs(&self) -> &[usize][src]

Get the indices of the inputs to this method

fn outputs(&self) -> &[usize][src]

Get the indices of the outputs to this method

Auto Trait Implementations

impl<T> !RefUnwindSafe for Method<T>

impl<T> Send for Method<T>

impl<T> Sync for Method<T>

impl<T> Unpin for Method<T>

impl<T> !UnwindSafe for Method<T>

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.