pub enum ResolvedConstraint {
Bound(Type),
Free(ValueTypeSet),
}
Expand description
The type constraint on a value argument once the controlling type variable is known.
Variants
Bound(Type)
The operand is bound to a known type.
Free(ValueTypeSet)
The operand type can vary freely within the given set.
Trait Implementations
sourceimpl Clone for ResolvedConstraint
impl Clone for ResolvedConstraint
sourcefn clone(&self) -> ResolvedConstraint
fn clone(&self) -> ResolvedConstraint
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ResolvedConstraint
impl Debug for ResolvedConstraint
sourceimpl PartialEq<ResolvedConstraint> for ResolvedConstraint
impl PartialEq<ResolvedConstraint> for ResolvedConstraint
sourcefn eq(&self, other: &ResolvedConstraint) -> bool
fn eq(&self, other: &ResolvedConstraint) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ResolvedConstraint) -> bool
fn ne(&self, other: &ResolvedConstraint) -> bool
This method tests for !=
.
impl Copy for ResolvedConstraint
impl Eq for ResolvedConstraint
impl StructuralEq for ResolvedConstraint
impl StructuralPartialEq for ResolvedConstraint
Auto Trait Implementations
impl RefUnwindSafe for ResolvedConstraint
impl Send for ResolvedConstraint
impl Sync for ResolvedConstraint
impl Unpin for ResolvedConstraint
impl UnwindSafe for ResolvedConstraint
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.