pub struct ParseOptions {
pub obfuscated_literals: bool,
pub mixed_label_syntax: bool,
}Expand description
Parse-affecting preview options: the ADR-0371 preview gates that widen
what the parser accepts (the lexer’s token stream and the parser’s own
grammar), resolved by the caller (the front derives them from the
store’s RELATE_PREVIEW set). The default is every gate closed –
the dialect floor. One struct so a speculative or nested parse inherits
its caller’s dialect by plain field copy; the flags are Copy, never
re-derived per site.
Fields§
§obfuscated_literals: boolThe obfuscated-literals gate: a run of exactly six * lexes as
one TokenType::ObfuscatedLiteral instead of six Star tokens.
mixed_label_syntax: boolThe mixed-label-syntax gate (Neo4j’s
mixed-label-syntax extra semantic feature):
legacy colon-conjunction (:A:B), GQL label-expression symbols
(|, &, !, %) and the IS introducer may mix within one
clause and within one label expression ((n:A|B:C),
(n IS S:R)), with : parsed as an &-level conjunction
operator. Off (the floor), every CIP-40/CIP-14 mixing rejection
keeps firing.
Trait Implementations§
Source§impl Clone for ParseOptions
impl Clone for ParseOptions
impl Copy for ParseOptions
Source§impl Debug for ParseOptions
impl Debug for ParseOptions
Source§impl Default for ParseOptions
impl Default for ParseOptions
impl Eq for ParseOptions
Source§impl PartialEq for ParseOptions
impl PartialEq for ParseOptions
impl StructuralPartialEq for ParseOptions
Auto Trait Implementations§
impl Forget for ParseOptions
impl Freeze for ParseOptions
impl Move for ParseOptions
impl RefUnwindSafe for ParseOptions
impl Send for ParseOptions
impl Sync for ParseOptions
impl Unpin for ParseOptions
impl UnsafeUnpin for ParseOptions
impl UnwindSafe for ParseOptions
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
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
key and return true if they are equal.