pub struct ReturnItem {
pub expr: Expr,
pub alias: Option<SmallName>,
pub all: bool,
pub source_text: Option<String>,
}Expand description
A single item in a RETURN clause.
Fields§
§expr: Expr§alias: Option<SmallName>§all: bool§source_text: Option<String>Implementations§
Source§impl ReturnItem
impl ReturnItem
Sourcepub fn implicit_name(&self) -> Option<&SmallName>
pub fn implicit_name(&self) -> Option<&SmallName>
The implicit name an unaliased item carries: its bare variable, or the variable a map projection is a view of (both paren-transparent). The one derivation of the implicit-name vocabulary.
Sourcepub fn output_name(&self) -> Option<SmallName>
pub fn output_name(&self) -> Option<SmallName>
The column name the item projects: its alias, else
Self::implicit_name, else its verbatim source text. None only
for an item that carries none of the three (never a parsed one). The
one home of the output-name rule: the parser’s UNION column check and
the front’s scope passes both read it.
Trait Implementations§
Source§impl Clone for ReturnItem
impl Clone for ReturnItem
Source§impl Debug for ReturnItem
impl Debug for ReturnItem
Source§impl PartialEq for ReturnItem
impl PartialEq for ReturnItem
impl StructuralPartialEq for ReturnItem
Auto Trait Implementations§
impl Forget for ReturnItem
impl Freeze for ReturnItemwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Expr>: Freeze,
PhantomData<MapPair>: Freeze,
PhantomData<InterpPart>: Freeze,
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const PropertyAccess is !null: Freeze,
PhantomData<PropertyAccess>: Freeze,
*const BinaryExpr is !null: Freeze,
PhantomData<BinaryExpr>: Freeze,
*const UnaryExpr is !null: Freeze,
PhantomData<UnaryExpr>: Freeze,
*const ComparisonExpr is !null: Freeze,
PhantomData<ComparisonExpr>: Freeze,
*const InExpr is !null: Freeze,
PhantomData<InExpr>: Freeze,
*const IsNullExpr is !null: Freeze,
PhantomData<IsNullExpr>: Freeze,
*const IsTypeExpr is !null: Freeze,
PhantomData<IsTypeExpr>: Freeze,
*const IsNormalizedExpr is !null: Freeze,
PhantomData<IsNormalizedExpr>: Freeze,
*const ChronologicalCompareExpr is !null: Freeze,
PhantomData<ChronologicalCompareExpr>: Freeze,
*const StringMatchExpr is !null: Freeze,
PhantomData<StringMatchExpr>: Freeze,
*const CaseExpr is !null: Freeze,
PhantomData<CaseExpr>: Freeze,
*const ExistsSubqueryExpr is !null: Freeze,
PhantomData<ExistsSubqueryExpr>: Freeze,
*const CountSubqueryExpr is !null: Freeze,
PhantomData<CountSubqueryExpr>: Freeze,
*const CollectSubqueryExpr is !null: Freeze,
PhantomData<CollectSubqueryExpr>: Freeze,
*const ListComprehensionExpr is !null: Freeze,
PhantomData<ListComprehensionExpr>: Freeze,
*const MapComprehensionExpr is !null: Freeze,
PhantomData<MapComprehensionExpr>: Freeze,
*const PatternComprehensionExpr is !null: Freeze,
PhantomData<PatternComprehensionExpr>: Freeze,
*const ReduceExpr is !null: Freeze,
PhantomData<ReduceExpr>: Freeze,
*const AllReduceExpr is !null: Freeze,
PhantomData<AllReduceExpr>: Freeze,
*const ShortestPathExpr is !null: Freeze,
PhantomData<ShortestPathExpr>: Freeze,
*const SubscriptExpr is !null: Freeze,
PhantomData<SubscriptExpr>: Freeze,
*const QuantifierExpr is !null: Freeze,
PhantomData<QuantifierExpr>: Freeze,
*const HasLabelExpr is !null: Freeze,
PhantomData<HasLabelExpr>: Freeze,
*const Expr is !null: Freeze,
*const PatternPredicateExpr is !null: Freeze,
PhantomData<PatternPredicateExpr>: Freeze,
*const MapProjectionExpr is !null: Freeze,
PhantomData<MapProjectionExpr>: Freeze,
impl Move for ReturnItem
impl RefUnwindSafe for ReturnItem
impl Send for ReturnItemwhere
RawVecInner: Send,
Arc<str>: Send,
BoxRaw<Expr>: Send,
BoxRaw<PropertyAccess>: Send,
BoxRaw<BinaryExpr>: Send,
BoxRaw<UnaryExpr>: Send,
BoxRaw<ComparisonExpr>: Send,
BoxRaw<InExpr>: Send,
BoxRaw<IsNullExpr>: Send,
BoxRaw<IsTypeExpr>: Send,
BoxRaw<IsNormalizedExpr>: Send,
BoxRaw<ChronologicalCompareExpr>: Send,
BoxRaw<StringMatchExpr>: Send,
BoxRaw<CaseExpr>: Send,
BoxRaw<ExistsSubqueryExpr>: Send,
BoxRaw<CountSubqueryExpr>: Send,
BoxRaw<CollectSubqueryExpr>: Send,
BoxRaw<ListComprehensionExpr>: Send,
BoxRaw<MapComprehensionExpr>: Send,
BoxRaw<PatternComprehensionExpr>: Send,
BoxRaw<ReduceExpr>: Send,
BoxRaw<AllReduceExpr>: Send,
BoxRaw<ShortestPathExpr>: Send,
BoxRaw<SubscriptExpr>: Send,
BoxRaw<QuantifierExpr>: Send,
BoxRaw<HasLabelExpr>: Send,
BoxRaw<PatternPredicateExpr>: Send,
BoxRaw<MapProjectionExpr>: Send,
impl Sync for ReturnItemwhere
RawVecInner: Sync,
Arc<str>: Sync,
BoxRaw<Expr>: Sync,
BoxRaw<PropertyAccess>: Sync,
BoxRaw<BinaryExpr>: Sync,
BoxRaw<UnaryExpr>: Sync,
BoxRaw<ComparisonExpr>: Sync,
BoxRaw<InExpr>: Sync,
BoxRaw<IsNullExpr>: Sync,
BoxRaw<IsTypeExpr>: Sync,
BoxRaw<IsNormalizedExpr>: Sync,
BoxRaw<ChronologicalCompareExpr>: Sync,
BoxRaw<StringMatchExpr>: Sync,
BoxRaw<CaseExpr>: Sync,
BoxRaw<ExistsSubqueryExpr>: Sync,
BoxRaw<CountSubqueryExpr>: Sync,
BoxRaw<CollectSubqueryExpr>: Sync,
BoxRaw<ListComprehensionExpr>: Sync,
BoxRaw<MapComprehensionExpr>: Sync,
BoxRaw<PatternComprehensionExpr>: Sync,
BoxRaw<ReduceExpr>: Sync,
BoxRaw<AllReduceExpr>: Sync,
BoxRaw<ShortestPathExpr>: Sync,
BoxRaw<SubscriptExpr>: Sync,
BoxRaw<QuantifierExpr>: Sync,
BoxRaw<HasLabelExpr>: Sync,
BoxRaw<PatternPredicateExpr>: Sync,
BoxRaw<MapProjectionExpr>: Sync,
impl Unpin for ReturnItemwhere
*const u8 is !null: Unpin,
Arc<str>: Unpin,
Box<Expr>: Unpin,
Box<PropertyAccess>: Unpin,
Box<BinaryExpr>: Unpin,
Box<UnaryExpr>: Unpin,
Box<ComparisonExpr>: Unpin,
Box<InExpr>: Unpin,
Box<IsNullExpr>: Unpin,
Box<IsTypeExpr>: Unpin,
Box<IsNormalizedExpr>: Unpin,
Box<ChronologicalCompareExpr>: Unpin,
Box<StringMatchExpr>: Unpin,
Box<CaseExpr>: Unpin,
Box<ExistsSubqueryExpr>: Unpin,
Box<CountSubqueryExpr>: Unpin,
Box<CollectSubqueryExpr>: Unpin,
Box<ListComprehensionExpr>: Unpin,
Box<MapComprehensionExpr>: Unpin,
Box<PatternComprehensionExpr>: Unpin,
Box<ReduceExpr>: Unpin,
Box<AllReduceExpr>: Unpin,
Box<ShortestPathExpr>: Unpin,
Box<SubscriptExpr>: Unpin,
Box<QuantifierExpr>: Unpin,
Box<HasLabelExpr>: Unpin,
Box<PatternPredicateExpr>: Unpin,
Box<MapProjectionExpr>: Unpin,
impl UnsafeUnpin for ReturnItemwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Expr>: UnsafeUnpin,
PhantomData<MapPair>: UnsafeUnpin,
PhantomData<InterpPart>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const PropertyAccess is !null: UnsafeUnpin,
PhantomData<PropertyAccess>: UnsafeUnpin,
*const BinaryExpr is !null: UnsafeUnpin,
PhantomData<BinaryExpr>: UnsafeUnpin,
*const UnaryExpr is !null: UnsafeUnpin,
PhantomData<UnaryExpr>: UnsafeUnpin,
*const ComparisonExpr is !null: UnsafeUnpin,
PhantomData<ComparisonExpr>: UnsafeUnpin,
*const InExpr is !null: UnsafeUnpin,
PhantomData<InExpr>: UnsafeUnpin,
*const IsNullExpr is !null: UnsafeUnpin,
PhantomData<IsNullExpr>: UnsafeUnpin,
*const IsTypeExpr is !null: UnsafeUnpin,
PhantomData<IsTypeExpr>: UnsafeUnpin,
*const IsNormalizedExpr is !null: UnsafeUnpin,
PhantomData<IsNormalizedExpr>: UnsafeUnpin,
*const ChronologicalCompareExpr is !null: UnsafeUnpin,
PhantomData<ChronologicalCompareExpr>: UnsafeUnpin,
*const StringMatchExpr is !null: UnsafeUnpin,
PhantomData<StringMatchExpr>: UnsafeUnpin,
*const CaseExpr is !null: UnsafeUnpin,
PhantomData<CaseExpr>: UnsafeUnpin,
*const ExistsSubqueryExpr is !null: UnsafeUnpin,
PhantomData<ExistsSubqueryExpr>: UnsafeUnpin,
*const CountSubqueryExpr is !null: UnsafeUnpin,
PhantomData<CountSubqueryExpr>: UnsafeUnpin,
*const CollectSubqueryExpr is !null: UnsafeUnpin,
PhantomData<CollectSubqueryExpr>: UnsafeUnpin,
*const ListComprehensionExpr is !null: UnsafeUnpin,
PhantomData<ListComprehensionExpr>: UnsafeUnpin,
*const MapComprehensionExpr is !null: UnsafeUnpin,
PhantomData<MapComprehensionExpr>: UnsafeUnpin,
*const PatternComprehensionExpr is !null: UnsafeUnpin,
PhantomData<PatternComprehensionExpr>: UnsafeUnpin,
*const ReduceExpr is !null: UnsafeUnpin,
PhantomData<ReduceExpr>: UnsafeUnpin,
*const AllReduceExpr is !null: UnsafeUnpin,
PhantomData<AllReduceExpr>: UnsafeUnpin,
*const ShortestPathExpr is !null: UnsafeUnpin,
PhantomData<ShortestPathExpr>: UnsafeUnpin,
*const SubscriptExpr is !null: UnsafeUnpin,
PhantomData<SubscriptExpr>: UnsafeUnpin,
*const QuantifierExpr is !null: UnsafeUnpin,
PhantomData<QuantifierExpr>: UnsafeUnpin,
*const HasLabelExpr is !null: UnsafeUnpin,
PhantomData<HasLabelExpr>: UnsafeUnpin,
*const Expr is !null: UnsafeUnpin,
*const PatternPredicateExpr is !null: UnsafeUnpin,
PhantomData<PatternPredicateExpr>: UnsafeUnpin,
*const MapProjectionExpr is !null: UnsafeUnpin,
PhantomData<MapProjectionExpr>: UnsafeUnpin,
impl UnwindSafe for ReturnItemwhere
RawVecInner: UnwindSafe,
Arc<str>: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<PropertyAccess>: UnwindSafe,
BoxRaw<BinaryExpr>: UnwindSafe,
BoxRaw<UnaryExpr>: UnwindSafe,
BoxRaw<ComparisonExpr>: UnwindSafe,
BoxRaw<InExpr>: UnwindSafe,
BoxRaw<IsNullExpr>: UnwindSafe,
BoxRaw<IsTypeExpr>: UnwindSafe,
BoxRaw<IsNormalizedExpr>: UnwindSafe,
BoxRaw<ChronologicalCompareExpr>: UnwindSafe,
BoxRaw<StringMatchExpr>: UnwindSafe,
BoxRaw<CaseExpr>: UnwindSafe,
BoxRaw<ExistsSubqueryExpr>: UnwindSafe,
BoxRaw<CountSubqueryExpr>: UnwindSafe,
BoxRaw<CollectSubqueryExpr>: UnwindSafe,
BoxRaw<ListComprehensionExpr>: UnwindSafe,
BoxRaw<MapComprehensionExpr>: UnwindSafe,
BoxRaw<PatternComprehensionExpr>: UnwindSafe,
BoxRaw<ReduceExpr>: UnwindSafe,
BoxRaw<AllReduceExpr>: UnwindSafe,
BoxRaw<ShortestPathExpr>: UnwindSafe,
BoxRaw<SubscriptExpr>: UnwindSafe,
BoxRaw<QuantifierExpr>: UnwindSafe,
BoxRaw<HasLabelExpr>: UnwindSafe,
BoxRaw<PatternPredicateExpr>: UnwindSafe,
BoxRaw<MapProjectionExpr>: UnwindSafe,
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