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 LocalDefinition
impl Move for LocalDefinition
impl RefUnwindSafe for LocalDefinition
impl Send for LocalDefinition
impl Sync for LocalDefinition
impl Unpin for LocalDefinition
impl UnsafeUnpin for LocalDefinition
impl UnwindSafe for LocalDefinition
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