Skip to main content

QuantifiedPathPattern

Struct QuantifiedPathPattern 

Source
pub struct QuantifiedPathPattern {
    pub subpath_variable: Option<SmallName>,
    pub elements: Vec<PatternElement>,
    pub where_clause: Option<Expr>,
    pub min: u32,
    pub max: Option<u32>,
}

Fields§

§subpath_variable: Option<SmallName>§elements: Vec<PatternElement>§where_clause: Option<Expr>§min: u32§max: Option<u32>

Implementations§

Source§

impl QuantifiedPathPattern

Source

pub fn implicit_var_length_rel(&self) -> Option<&RelPattern>

The inner rel when this element is exactly a quantified var-length relationship — one plain one-hop rel between two implicit anonymous boundary nodes, no subpath variable, no group predicate: the form every -[r:T*m..n]- spelling lowers to (LABS-661), with the hop bounds on the quantifier (min/max). The rel’s quantified marker (the postfix ->{m,n} spelling’s origin, carrying its per-edge inline-WHERE semantics) does not change the shape. Any other quantified shape (a parenthesized group with named inner elements) answers None. The one decoder for this shape — the shortest-route guard, the plan-text renderer, and the group-name origin rules all consult it.

Trait Implementations§

Source§

impl Clone for QuantifiedPathPattern

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 Debug for QuantifiedPathPattern

Source§

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

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

impl PartialEq for QuantifiedPathPattern

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 QuantifiedPathPattern

Auto Trait Implementations§

§

impl Forget for QuantifiedPathPattern

§

impl Freeze for QuantifiedPathPattern
where *const ArcInner<str> is !null: Freeze, PhantomData<ArcInner<str>>: Freeze, *const u8 is !null: Freeze, PhantomData<PatternElement>: Freeze, *const ArcInner<Vec<Value>> is !null: Freeze, PhantomData<ArcInner<Vec<Value>>>: Freeze, *const ArcInner<BTreeMap<String, Value>> is !null: Freeze, PhantomData<ArcInner<BTreeMap<String, Value>>>: Freeze, *const ArcInner<Node> is !null: Freeze, PhantomData<ArcInner<Node>>: Freeze, *const ArcInner<Relationship> is !null: Freeze, PhantomData<ArcInner<Relationship>>: Freeze, *const ArcInner<Path> is !null: Freeze, PhantomData<ArcInner<Path>>: Freeze, NonZero<i32>: Freeze, PhantomData<u8>: Freeze, *const CivilZonedFields is !null: Freeze, PhantomData<CivilZonedFields>: Freeze, *const ArcInner<[f32]> is !null: Freeze, PhantomData<ArcInner<[f32]>>: Freeze, *const ArcInner<[f64]> is !null: Freeze, PhantomData<ArcInner<[f64]>>: Freeze, *const ArcInner<[i64]> is !null: Freeze, PhantomData<ArcInner<[i64]>>: Freeze, *const ArcInner<[u8]> is !null: Freeze, PhantomData<ArcInner<[u8]>>: Freeze, *const Expr is !null: Freeze, PhantomData<Expr>: Freeze, *const LabelExpr is !null: Freeze, PhantomData<LabelExpr>: Freeze, PhantomData<(String, Expr)>: Freeze, PhantomData<(Expr, Expr)>: Freeze, *const TypeExpr is !null: Freeze, PhantomData<TypeExpr>: Freeze, PhantomData<MapProjectionItem>: Freeze, PhantomData<NodePattern>: Freeze, PhantomData<RelPattern>: Freeze, PhantomData<SingleQuery>: Freeze, PhantomData<bool>: Freeze, *const Query is !null: Freeze, PhantomData<Query>: Freeze,

§

impl Move for QuantifiedPathPattern

§

impl RefUnwindSafe for QuantifiedPathPattern

§

impl Send for QuantifiedPathPattern
where Arc<str>: Send, RawVecInner: Send, BoxRaw<Expr>: Send, BoxRaw<LabelExpr>: Send, Arc<Vec<Value>>: Send, Arc<BTreeMap<String, Value>>: Send, Arc<Node>: Send, Arc<Relationship>: Send, Arc<Path>: Send, NonZero<i32>: Send, BoxRaw<CivilZonedFields>: Send, Arc<[f32]>: Send, Arc<[f64]>: Send, Arc<[i64]>: Send, Arc<[u8]>: Send, BoxRaw<TypeExpr>: Send, BoxRaw<Clause>: Send, BoxRaw<SearchClause>: Send, BoxRaw<Query>: Send,

§

impl Sync for QuantifiedPathPattern
where Arc<str>: Sync, RawVecInner: Sync, BoxRaw<Expr>: Sync, BoxRaw<LabelExpr>: Sync, Arc<Vec<Value>>: Sync, Arc<BTreeMap<String, Value>>: Sync, Arc<Node>: Sync, Arc<Relationship>: Sync, Arc<Path>: Sync, NonZero<i32>: Sync, BoxRaw<CivilZonedFields>: Sync, Arc<[f32]>: Sync, Arc<[f64]>: Sync, Arc<[i64]>: Sync, Arc<[u8]>: Sync, BoxRaw<TypeExpr>: Sync, BoxRaw<Clause>: Sync, BoxRaw<SearchClause>: Sync, BoxRaw<Query>: Sync,

§

impl Unpin for QuantifiedPathPattern

§

impl UnsafeUnpin for QuantifiedPathPattern
where *const ArcInner<str> is !null: UnsafeUnpin, PhantomData<ArcInner<str>>: UnsafeUnpin, *const u8 is !null: UnsafeUnpin, PhantomData<PatternElement>: UnsafeUnpin, *const ArcInner<Vec<Value>> is !null: UnsafeUnpin, PhantomData<ArcInner<Vec<Value>>>: UnsafeUnpin, *const ArcInner<BTreeMap<String, Value>> is !null: UnsafeUnpin, PhantomData<ArcInner<BTreeMap<String, Value>>>: UnsafeUnpin, *const ArcInner<Node> is !null: UnsafeUnpin, PhantomData<ArcInner<Node>>: UnsafeUnpin, *const ArcInner<Relationship> is !null: UnsafeUnpin, PhantomData<ArcInner<Relationship>>: UnsafeUnpin, *const ArcInner<Path> is !null: UnsafeUnpin, PhantomData<ArcInner<Path>>: UnsafeUnpin, NonZeroI32Inner: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, *const CivilZonedFields is !null: UnsafeUnpin, PhantomData<CivilZonedFields>: UnsafeUnpin, *const ArcInner<[f32]> is !null: UnsafeUnpin, PhantomData<ArcInner<[f32]>>: UnsafeUnpin, *const ArcInner<[f64]> is !null: UnsafeUnpin, PhantomData<ArcInner<[f64]>>: UnsafeUnpin, *const ArcInner<[i64]> is !null: UnsafeUnpin, PhantomData<ArcInner<[i64]>>: UnsafeUnpin, *const ArcInner<[u8]> is !null: UnsafeUnpin, PhantomData<ArcInner<[u8]>>: UnsafeUnpin, *const Expr is !null: UnsafeUnpin, PhantomData<Expr>: UnsafeUnpin, *const LabelExpr is !null: UnsafeUnpin, PhantomData<LabelExpr>: UnsafeUnpin, PhantomData<(String, Expr)>: UnsafeUnpin, PhantomData<(Expr, Expr)>: UnsafeUnpin, *const TypeExpr is !null: UnsafeUnpin, PhantomData<TypeExpr>: UnsafeUnpin, PhantomData<MapProjectionItem>: UnsafeUnpin, PhantomData<NodePattern>: UnsafeUnpin, PhantomData<RelPattern>: UnsafeUnpin, PhantomData<SingleQuery>: UnsafeUnpin, PhantomData<bool>: UnsafeUnpin, *const Query is !null: UnsafeUnpin, PhantomData<Query>: UnsafeUnpin,

§

impl UnwindSafe for QuantifiedPathPattern

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<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.