Struct sql::query_model::validator::quantifier::QuantifierConstraint [−][src]
pub struct QuantifierConstraint {
min: Bound<usize>,
max: Bound<usize>,
allowed_types: usize,
select_input: bool,
select_parent: bool,
}
Expand description
A model for constraints imposed on the input or ranging quantifiers of a query box.
Fields
min: Bound<usize>
Lower bound for the number of allowed quantifiers that match the allowed_types
bitmask.
max: Bound<usize>
Upper bound for the number of allowed quantifiers that match the allowed_types
bitmask.
allowed_types: usize
A bitmask of allowed QuantifierType
variant discriminants.
select_input: bool
Indicates whether the input of a quantifier with an allowed_type
must be a select box.
select_parent: bool
Indicates whether the parent of a quantifier with an allowed_type
must be a select box.
Implementations
Check if the given Quantifier
satisfy the allowed_types
of the this constraint.
Check if the boxes referenced by the given Quantifier
satisfy the input_is_select
and parent_is_select
of the this constraint.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for QuantifierConstraint
impl Send for QuantifierConstraint
impl Sync for QuantifierConstraint
impl Unpin for QuantifierConstraint
impl UnwindSafe for QuantifierConstraint
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more