pub enum Expression {
Show 24 variants
NamedNode(NamedNode),
Literal(Literal),
Variable(Variable),
Or(Box<Self>, Box<Self>),
And(Box<Self>, Box<Self>),
Equal(Box<Self>, Box<Self>),
SameTerm(Box<Self>, Box<Self>),
Greater(Box<Self>, Box<Self>),
GreaterOrEqual(Box<Self>, Box<Self>),
Less(Box<Self>, Box<Self>),
LessOrEqual(Box<Self>, Box<Self>),
In(Box<Self>, Vec<Self>),
Add(Box<Self>, Box<Self>),
Subtract(Box<Self>, Box<Self>),
Multiply(Box<Self>, Box<Self>),
Divide(Box<Self>, Box<Self>),
UnaryPlus(Box<Self>),
UnaryMinus(Box<Self>),
Not(Box<Self>),
Exists(Box<GraphPattern>),
Bound(Variable),
If(Box<Self>, Box<Self>, Box<Self>),
Coalesce(Vec<Self>),
FunctionCall(Function, Vec<Self>),
}
Expand description
An expression.
Variants§
NamedNode(NamedNode)
Literal(Literal)
Variable(Variable)
Or(Box<Self>, Box<Self>)
And(Box<Self>, Box<Self>)
Equal(Box<Self>, Box<Self>)
RDFterm-equal and all the XSD equalities.
SameTerm(Box<Self>, Box<Self>)
Greater(Box<Self>, Box<Self>)
op:numeric-greater-than and other XSD greater than operators.
GreaterOrEqual(Box<Self>, Box<Self>)
Less(Box<Self>, Box<Self>)
op:numeric-less-than and other XSD greater than operators.
LessOrEqual(Box<Self>, Box<Self>)
In(Box<Self>, Vec<Self>)
Add(Box<Self>, Box<Self>)
op:numeric-add and other XSD additions.
Subtract(Box<Self>, Box<Self>)
op:numeric-subtract and other XSD subtractions.
Multiply(Box<Self>, Box<Self>)
op:numeric-multiply and other XSD multiplications.
Divide(Box<Self>, Box<Self>)
op:numeric-divide and other XSD divides.
UnaryPlus(Box<Self>)
op:numeric-unary-plus and other XSD unary plus.
UnaryMinus(Box<Self>)
op:numeric-unary-minus and other XSD unary minus.
Not(Box<Self>)
Exists(Box<GraphPattern>)
Bound(Variable)
If(Box<Self>, Box<Self>, Box<Self>)
IF.
Coalesce(Vec<Self>)
FunctionCall(Function, Vec<Self>)
A regular function call.
Trait Implementations§
Source§impl Clone for Expression
impl Clone for Expression
Source§fn clone(&self) -> Expression
fn clone(&self) -> Expression
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 Expression
impl Debug for Expression
Source§impl Display for Expression
impl Display for Expression
Source§impl From<Literal> for Expression
impl From<Literal> for Expression
Source§impl From<NamedNode> for Expression
impl From<NamedNode> for Expression
Source§impl From<NamedNodePattern> for Expression
impl From<NamedNodePattern> for Expression
Source§fn from(p: NamedNodePattern) -> Self
fn from(p: NamedNodePattern) -> Self
Converts to this type from the input type.
Source§impl From<Variable> for Expression
impl From<Variable> for Expression
Source§impl Hash for Expression
impl Hash for Expression
Source§impl PartialEq for Expression
impl PartialEq for Expression
impl Eq for Expression
impl StructuralPartialEq for Expression
Auto Trait Implementations§
impl Freeze for Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
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