Struct hotdrink_rs::macros::RawMethod[][src]

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

An intermediate struct for constructing Methods.

Implementations

impl<T> RawMethod<T>[src]

pub fn new<S: Into<String>>(
    name: S,
    inputs: Vec<S>,
    outputs: Vec<S>,
    apply: MethodFunction<T>
) -> Self
[src]

Constructs a new RawMethod.

pub fn into_method(self, var_to_idx: &HashMap<String, usize>) -> Method<T> where
    T: Clone
[src]

Converts this RawMethod into a Method.

Trait Implementations

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

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

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

Auto Trait Implementations

impl<T> !RefUnwindSafe for RawMethod<T>

impl<T> Send for RawMethod<T>

impl<T> Sync for RawMethod<T>

impl<T> Unpin for RawMethod<T>

impl<T> !UnwindSafe for RawMethod<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, 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.