Skip to main content

BindErrorKind

Enum BindErrorKind 

Source
pub enum BindErrorKind {
    UnknownLabel,
    UnknownRelationType,
    UnknownProperty,
    UndeclaredVariable,
    DuplicateVariable,
    AmbiguousProperty,
    UnsupportedClause,
    InvalidDeleteTarget,
    VariableKindConflict,
    VariableAlreadyBound,
    InvalidArgument,
}
Expand description

The kind of a binder error.

Variants§

§

UnknownLabel

A label name was not found in the ontology (strict mode).

§

UnknownRelationType

A relation type name was not found in the ontology (strict mode).

§

UnknownProperty

A property name was not found in the ontology (strict mode).

§

UndeclaredVariable

A variable was referenced before it was introduced by a MATCH pattern.

§

DuplicateVariable

The same variable was introduced more than once in a conflicting way.

§

AmbiguousProperty

A property name is ambiguous across multiple owner labels.

§

UnsupportedClause

A clause is recognized by the parser but not yet implemented by the binder/executor (SET/REMOVE/CALL). Surfaced as an error instead of a silent no-op (#724).

§

InvalidDeleteTarget

A DELETE target was not a plain bound variable (e.g. DELETE n.prop or DELETE n + 1). Only DELETE <var> is supported (#740).

§

VariableKindConflict

A variable is used with two incompatible kinds — e.g. a relationship variable reused as a node pattern (MATCH ()-[r]-() MATCH (r)). openCypher rejects this as a compile-time VariableTypeConflict (#956).

§

VariableAlreadyBound

An already-bound variable is re-declared by a CREATE/MERGE pattern (MATCH (a) CREATE (a), a reused relationship variable, a bound node given new labels/properties). openCypher VariableAlreadyBound (#956).

§

InvalidArgument

A clause or function argument is semantically invalid — a non-integer range()/SKIP/LIMIT argument, an aggregate in WHERE, a CREATE relationship with no/var-length/undirected type, a UNION column mismatch, etc. Covers openCypher’s ArgumentError / InvalidAggregation / NoSingleRelationshipType / … — the harness checks the phase, not the sub-code, so one kind with a descriptive message suffices (#956).

Trait Implementations§

Source§

impl Clone for BindErrorKind

Source§

fn clone(&self) -> BindErrorKind

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BindErrorKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for BindErrorKind

Source§

impl PartialEq for BindErrorKind

Source§

fn eq(&self, other: &BindErrorKind) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for BindErrorKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.