Struct hotdrink_rs::macros::RawConstraint [−][src]
pub struct RawConstraint<T> { /* fields omitted */ }
An intermediate struct for constructing Constraint
s.
Implementations
impl<T> RawConstraint<T>
[src]
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]
name: S,
methods: Vec<RawMethod<T>>,
assert: Option<Arc<dyn Fn(&[T]) -> bool>>
) -> Self
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]
self,
var_to_idx: &HashMap<String, usize>
) -> Constraint<T> where
T: Clone,
Converts this RawConstraint
into a Constraint
.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for RawConstraint<T>
impl<T> !RefUnwindSafe for RawConstraint<T>
impl<T> !Send for RawConstraint<T>
impl<T> !Send for RawConstraint<T>
impl<T> !Sync for RawConstraint<T>
impl<T> !Sync for RawConstraint<T>
impl<T> Unpin for RawConstraint<T>
impl<T> Unpin for RawConstraint<T>
impl<T> !UnwindSafe for RawConstraint<T>
impl<T> !UnwindSafe for RawConstraint<T>