pub struct LocalFunction { /* private fields */ }Expand description
One plan-local function defined from the closed pattern algebra.
The function owns a private dense binding space; its parameters are the
leading bindings, each declared against one schema type label. The first
local vocabulary keeps bodies flat (isa, has, links, value) and
returns one total reducer result.
Implementations§
Source§impl LocalFunction
impl LocalFunction
Sourcepub const fn new(
name: FunctionId,
bindings: Vec<AssertionBinding>,
parameters: Vec<Label>,
body: Vec<QueryPattern>,
returns: LocalReturn,
) -> Self
pub const fn new( name: FunctionId, bindings: Vec<AssertionBinding>, parameters: Vec<Label>, body: Vec<QueryPattern>, returns: LocalReturn, ) -> Self
Declare one plan-local function.
Sourcepub const fn name(&self) -> &FunctionId
pub const fn name(&self) -> &FunctionId
Return the function name.
Sourcepub fn bindings(&self) -> &[AssertionBinding]
pub fn bindings(&self) -> &[AssertionBinding]
Return the private dense binding table.
Sourcepub fn parameters(&self) -> &[Label]
pub fn parameters(&self) -> &[Label]
Return the schema type label of each leading parameter binding.
Sourcepub fn body(&self) -> &[QueryPattern]
pub fn body(&self) -> &[QueryPattern]
Return the closed body conjunction.
Sourcepub const fn returns(&self) -> &LocalReturn
pub const fn returns(&self) -> &LocalReturn
Return the declared reducer result.
Trait Implementations§
Source§impl Clone for LocalFunction
impl Clone for LocalFunction
Source§impl Debug for LocalFunction
impl Debug for LocalFunction
impl Eq for LocalFunction
Source§impl PartialEq for LocalFunction
impl PartialEq for LocalFunction
Source§impl Serialize for LocalFunction
impl Serialize for LocalFunction
impl StructuralPartialEq for LocalFunction
Auto Trait Implementations§
impl Freeze for LocalFunction
impl RefUnwindSafe for LocalFunction
impl Send for LocalFunction
impl Sync for LocalFunction
impl Unpin for LocalFunction
impl UnsafeUnpin for LocalFunction
impl UnwindSafe for LocalFunction
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