Struct hotdrink_rs::macros::RawConstraint[][src]

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

An intermediate struct for constructing Constraints.

Implementations

impl<T> RawConstraint<T>[src]

pub fn new<S: Into<String>>(name: S, methods: Vec<RawMethod<T>>) -> Self[src]

Constructs a new RawConstraint.

pub fn new_with_assert<S: Into<String>>(
    name: S,
    methods: Vec<RawMethod<T>>,
    assert: Option<Arc<dyn Fn(&[T]) -> bool>>
) -> Self
[src]

Constructs a new RawConstraint with an optional assert statement.

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

Converts this RawConstraint into a Constraint.

Trait Implementations

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

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

Auto Trait Implementations

impl<T> !RefUnwindSafe for RawConstraint<T>

impl<T> !Send for RawConstraint<T>

impl<T> !Sync for RawConstraint<T>

impl<T> Unpin for RawConstraint<T>

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