Struct hotdrink_rs::model::Method [−][src]
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]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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 new(
name: String,
inputs: Vec<usize>,
outputs: Vec<usize>,
apply: MethodFunction<T>
) -> Self
[src]
name: String,
inputs: Vec<usize>,
outputs: Vec<usize>,
apply: MethodFunction<T>
) -> Self
fn apply(&self, input: Vec<Arc<T>>) -> MethodResult<Arc<T>>
[src]
Apply the inner function of this method
fn name(&self) -> &str
[src]
impl<T> PartialEq<Method<T>> for Method<T>
[src]
impl<T> Vertex for Method<T>
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,