Skip to main content

PreviewFeature

Enum PreviewFeature 

Source
pub enum PreviewFeature {
Show 14 variants HybridSearch, LocalCallables, GraphTypeOptProps, GraphTypeDefaultValues, GraphTypeImpliedLabels, Ontology, ObfuscatedLiterals, MixedLabelSyntax, Float16CoordinateTypes, ChronologicalComparisons, ComplexSearchPatterns, CollectionZip, CollectionHas, GqlStddevAliases,
}
Expand description

A gated preview Cypher feature. The table order is the registry order; rows are never renumbered, only appended.

Variants§

§

HybridSearch

CIP-278 hybrid search COMBINE (reserved; lands later).

§

LocalCallables

CIP-231 local callables: DEFINE PROCEDURE/FUNCTION, ADR-0382.

§

GraphTypeOptProps

CIP-283 graph-type optional properties (prop :: ANY in element types).

§

GraphTypeDefaultValues

CIP-262 graph-type property default values (DEFAULT ON COMMIT <value expression>).

§

GraphTypeImpliedLabels

CIP-266 graph-type implied labels that identify node element types (inheritance).

§

Ontology

The ontology feature’s whole dialect surface: the db.ontology.* procedures (ADR-0378: the first non-syntax extension of ADR-0371’s scope policy — the family’s contract tracks the non-final Ontology Graph Spec and CIP-287) and, through the namespace registry’s mapping, the system_ontologies namespace’s visibility (ADR-0593 — the namespace exists to host this feature’s stored document, so its listing advertises the same non-final surface the procedures do). Row, mapping and gates are removed once the spec and CIP-287 are final.

§

ObfuscatedLiterals

The Neo4j obfuscated literal ******: parsed to a dummy false for semantic analysis, never executed. Gates at the lexer, the one point the two behaviors differ: enabled it lexes as a literal, disabled the stream is the ordinary * tokens and the parser’s own syntax error – Neo4j’s disabled form is a syntax error, not ADR-0371’s authored preview error, so the gate never reaches the front detector loop (its arm returns false).

§

MixedLabelSyntax

Neo4j’s mixed-label-syntax extra semantic feature: legacy colon-conjunction, GQL label-expression symbols and the IS introducer may mix across the label expressions of one clause (gates at parse, threaded to the parser as ParseOptions; mixing inside ONE label expression stays rejected).

§

Float16CoordinateTypes

The FLOAT16/BFLOAT16 vector coordinate types (CIP-280, ADR-0464), mirroring Neo4j’s own configuration toggle: the types in a VECTOR<…> type expression and the vector(<list>, <dim>, <type>) constructor. Detected on the parsed AST; the disabled form is ADR-0371’s authored error.

§

ChronologicalComparisons

Cypher 25’s four chronological comparison operators (a IS [NOT] BEFORE | AFTER | SAME INSTANT | SAME REPRESENTATION b), mirroring Neo4j’s own toggle. Detected on the parsed AST; the disabled form is ADR-0371’s authored error.

§

ComplexSearchPatterns

Neo4j’s vector-search complex-pattern mode: a SEARCH clause’s MATCH statement keeps its own pattern shape – several components, variable-length hops, quantified and selected paths, several bound variables, predicates outside the binding – instead of the floor’s single node or single-hop relationship. Widens the front’s SEARCH validation; disabled, every pattern-shape rejection keeps firing.

§

CollectionZip

CIP-274: the coll.zip collection function, callable and SHOW-listed only under this opt-in (ADR-0497). A live Neo4j probe records the name as front-end registered but unreachable – no SHOW FUNCTIONS row, 42N48 under CYPHER 5 and 25 – so the default dialect must not advertise it. Row and gate are deleted when a Neo4j release ships the function.

§

CollectionHas

CIP-286: the coll.hasAnyOf/coll.hasAllOf/coll.hasNoneOf collection functions, callable and SHOW-listed only under this opt-in (ADR-0497). One row for the three-name family; deleted when CIP-286 ships.

§

GqlStddevAliases

CIP-245’s stddev_samp/stddev_pop spellings (ADR-0497): the corpus catalogue lists only the canonical stdev_samp/stdev_pop, and Neo4j 2026.05 answers 42N48 for the GQL spellings, so the default dialect advertises and dispatches only the stdev_* rows. The gate keeps the @doc-derived 78/78 reachable. Deleted when a release registers the spellings (or the scenarios are re-pinned).

Implementations§

Source§

impl PreviewFeature

Source

pub fn kebab_name(self) -> &'static str

The feature’s kebab-case RELATE_PREVIEW name. The exhaustive match is the compile guarantee the registry exists for — coverage cannot drift from the table.

Source

pub fn from_kebab_name(name: &str) -> Option<Self>

The feature for a kebab-case RELATE_PREVIEW name. None when name is not a registered feature.

Trait Implementations§

Source§

impl Clone for PreviewFeature

Source§

fn clone(&self) -> Self

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 Copy for PreviewFeature

Source§

impl Debug for PreviewFeature

Source§

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

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

impl Eq for PreviewFeature

Source§

impl Hash for PreviewFeature

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for PreviewFeature

Source§

fn eq(&self, other: &Self) -> 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 PreviewFeature

Auto Trait Implementations§

Blanket Implementations§

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<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> 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 = !

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

fn try_from(value: U) -> Result<T, !>

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.