pub enum ValidityConstraint {
ValidOnly,
MaybeInvalid,
}
Expand description
Serves two purposes:
- in a wildcard, tracks whether the wildcard matches only valid values (i.e. is a binding
_a
) or also invalid values (i.e. is a true_
pattern). - in the matrix, track whether a given place (aka column) is known to contain a valid value or not.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for ValidityConstraint
impl Clone for ValidityConstraint
source§fn clone(&self) -> ValidityConstraint
fn clone(&self) -> ValidityConstraint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ValidityConstraint
impl Debug for ValidityConstraint
source§impl Display for ValidityConstraint
impl Display for ValidityConstraint
source§impl PartialEq for ValidityConstraint
impl PartialEq for ValidityConstraint
source§fn eq(&self, other: &ValidityConstraint) -> bool
fn eq(&self, other: &ValidityConstraint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ValidityConstraint
impl Eq for ValidityConstraint
impl StructuralPartialEq for ValidityConstraint
Auto Trait Implementations§
impl RefUnwindSafe for ValidityConstraint
impl Send for ValidityConstraint
impl Sync for ValidityConstraint
impl Unpin for ValidityConstraint
impl UnwindSafe for ValidityConstraint
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more