pub enum SparqlOpArity {
Nullary,
Fixed(usize),
OneOf(Vec<SparqlOpArity>),
Variadic,
}
Expand description
Defines the arity of a SPARQL operation. In other words, the number of arguments that the ScalarSparqlOp has.
Variants§
Nullary
No arguments.
Fixed(usize)
A fixed number of arguments.
SparqlOpArity::Fixed(0)
is equivalent to SparqlOpArity::Nullary.
OneOf(Vec<SparqlOpArity>)
One of the given SparqlOpArity.
Variadic
Any number of arguments (including zero).
Implementations§
Source§impl SparqlOpArity
impl SparqlOpArity
Sourcepub fn type_signature<TEncoding: TermEncoding>(
&self,
encoding: &TEncoding,
) -> TypeSignature
pub fn type_signature<TEncoding: TermEncoding>( &self, encoding: &TEncoding, ) -> TypeSignature
Returns a TypeSignature for the given SparqlOpArity.
Trait Implementations§
Source§impl Clone for SparqlOpArity
impl Clone for SparqlOpArity
Source§fn clone(&self) -> SparqlOpArity
fn clone(&self) -> SparqlOpArity
Returns a duplicate 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 SparqlOpArity
impl Debug for SparqlOpArity
Source§impl Hash for SparqlOpArity
impl Hash for SparqlOpArity
Source§impl PartialEq for SparqlOpArity
impl PartialEq for SparqlOpArity
impl Eq for SparqlOpArity
impl StructuralPartialEq for SparqlOpArity
Auto Trait Implementations§
impl Freeze for SparqlOpArity
impl RefUnwindSafe for SparqlOpArity
impl Send for SparqlOpArity
impl Sync for SparqlOpArity
impl Unpin for SparqlOpArity
impl UnwindSafe for SparqlOpArity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more