pub struct LocalDefinition {
pub kind: LocalCallableKind,
pub name: SmallName,
pub params: Vec<LocalParam>,
pub output: Option<LocalOutput>,
pub body: LocalDefinitionBody,
}Expand description
CIP-231 DEFINE block entry: one local callable definition, parsed at
the head of a <statement block> (top level or a braced nested body)
and rewritten away by the front-end resolver
(relate-front’s local_callables) before lowering – the
planner/executor never see local callables.
Fields§
§kind: LocalCallableKindPROCEDURE or FUNCTION.
name: SmallNameThe fully-qualified callable name as written (foo.bar), namespace
segments joined on .. Matched against call-site names verbatim.
params: Vec<LocalParam>The <callable input signature>: parameters in declaration order.
output: Option<LocalOutput>The declared <procedure output type> ((field :: T, ...)) or
<function output type> (:: T), when written.
body: LocalDefinitionBody= <value expression> (simple function body) or a braced
<procedure specification> (procedure body or subquery function
body).
Trait Implementations§
Source§impl Clone for LocalDefinition
impl Clone for LocalDefinition
Source§impl Debug for LocalDefinition
impl Debug for LocalDefinition
Source§impl PartialEq for LocalDefinition
impl PartialEq for LocalDefinition
impl StructuralPartialEq for LocalDefinition
Auto Trait Implementations§
impl Forget for LocalDefinition
impl Freeze for LocalDefinitionwhere
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<LocalParam>: Freeze,
PhantomData<LocalOutputField>: Freeze,
*const TypeExpr is !null: Freeze,
PhantomData<TypeExpr>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Expr>: Freeze,
PhantomData<MapPair>: Freeze,
PhantomData<InterpPart>: 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,
PhantomData<Clause>: Freeze,
*const UnionPart is !null: Freeze,
PhantomData<UnionPart>: Freeze,
*const Statement is !null: Freeze,
PhantomData<Statement>: Freeze,
PhantomData<LocalDefinition>: Freeze,
impl Move for LocalDefinition
impl RefUnwindSafe for LocalDefinition
impl Send for LocalDefinitionwhere
Arc<str>: Send,
RawVecInner: Send,
BoxRaw<TypeExpr>: 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,
BoxRaw<LabelExpr>: Send,
BoxRaw<UnionPart>: Send,
BoxRaw<Statement>: Send,
impl Sync for LocalDefinitionwhere
Arc<str>: Sync,
RawVecInner: Sync,
BoxRaw<TypeExpr>: 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,
BoxRaw<LabelExpr>: Sync,
BoxRaw<UnionPart>: Sync,
BoxRaw<Statement>: Sync,
impl Unpin for LocalDefinitionwhere
Arc<str>: Unpin,
*const u8 is !null: Unpin,
Box<TypeExpr>: 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,
Box<LabelExpr>: Unpin,
Box<UnionPart>: Unpin,
Box<Statement>: Unpin,
impl UnsafeUnpin for LocalDefinitionwhere
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<LocalParam>: UnsafeUnpin,
PhantomData<LocalOutputField>: UnsafeUnpin,
*const TypeExpr is !null: UnsafeUnpin,
PhantomData<TypeExpr>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Expr>: UnsafeUnpin,
PhantomData<MapPair>: UnsafeUnpin,
PhantomData<InterpPart>: 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,
PhantomData<Clause>: UnsafeUnpin,
*const UnionPart is !null: UnsafeUnpin,
PhantomData<UnionPart>: UnsafeUnpin,
*const Statement is !null: UnsafeUnpin,
PhantomData<Statement>: UnsafeUnpin,
PhantomData<LocalDefinition>: UnsafeUnpin,
impl UnwindSafe for LocalDefinitionwhere
Arc<str>: UnwindSafe,
RawVecInner: UnwindSafe,
BoxRaw<TypeExpr>: 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,
BoxRaw<LabelExpr>: UnwindSafe,
BoxRaw<UnionPart>: UnwindSafe,
BoxRaw<Statement>: 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