[−][src]Enum canrun::state::constraints::TwoOfThree
Resolve two out of three Val
s or return an Err(VarWatch)
in a Constraint
.
Variants
Returned when the first and second Val
s are successfully resolved.
Returned when the second and third Val
s are successfully resolved.
Returned when the first and third Val
s are successfully resolved.
Implementations
impl<A: Debug, B: Debug, C: Debug> TwoOfThree<A, B, C>
[src]
pub fn resolve<'a, D>(
a: &Val<A>,
b: &Val<B>,
c: &Val<C>,
state: &State<'a, D>
) -> Result<TwoOfThree<A, B, C>, VarWatch> where
D: DomainType<'a, A> + DomainType<'a, B> + DomainType<'a, C>,
[src]
a: &Val<A>,
b: &Val<B>,
c: &Val<C>,
state: &State<'a, D>
) -> Result<TwoOfThree<A, B, C>, VarWatch> where
D: DomainType<'a, A> + DomainType<'a, B> + DomainType<'a, C>,
Attempt to resolve a TwoOfThree
enum from a State
.
Auto Trait Implementations
impl<A, B, C> !RefUnwindSafe for TwoOfThree<A, B, C>
impl<A, B, C> !Send for TwoOfThree<A, B, C>
impl<A, B, C> !Sync for TwoOfThree<A, B, C>
impl<A, B, C> Unpin for TwoOfThree<A, B, C> where
A: Unpin,
B: Unpin,
C: Unpin,
A: Unpin,
B: Unpin,
C: Unpin,
impl<A, B, C> UnwindSafe for TwoOfThree<A, B, C> where
A: RefUnwindSafe + UnwindSafe,
B: RefUnwindSafe + UnwindSafe,
C: RefUnwindSafe + UnwindSafe,
A: RefUnwindSafe + UnwindSafe,
B: RefUnwindSafe + UnwindSafe,
C: RefUnwindSafe + UnwindSafe,
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,
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> Same<T> for T
type Output = T
Should always be Self
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,