Enum espr::ir::ConstraintExpr [−][src]
pub enum ConstraintExpr {
Reference(Path),
AndOr(Vec<ConstraintExpr>),
And(Vec<ConstraintExpr>),
OneOf(Vec<ConstraintExpr>),
}
Expand description
Expression appears in SUBTYPE_CONSTRAINT
with resolved Path
Variants
Reference(Path)
Tuple Fields of Reference
0: Path
AndOr(Vec<ConstraintExpr>)
Tuple Fields of AndOr
0: Vec<ConstraintExpr>
And(Vec<ConstraintExpr>)
Tuple Fields of And
0: Vec<ConstraintExpr>
OneOf(Vec<ConstraintExpr>)
Tuple Fields of OneOf
0: Vec<ConstraintExpr>
Implementations
pub fn from_ast_expr(
ns: &Namespace<'_>,
scope: &Scope,
expr: &SuperTypeExpression
) -> Result<Self, SemanticError>
Evaluate the expresion into a list of instantiables
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 ConstraintExpr
impl Send for ConstraintExpr
impl Sync for ConstraintExpr
impl Unpin for ConstraintExpr
impl UnwindSafe for ConstraintExpr
Blanket Implementations
Mutably borrows from an owned value. Read more