#[non_exhaustive]pub struct FunctionNode {
pub name: String,
pub arguments: Vec<Expression>,
/* private fields */
}Expand description
A node representing a function call
E.g. SUBSTR('A', 1, 2)
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe name of the function to execute
arguments: Vec<Expression>The arguments to the function
Implementations§
Source§impl FunctionNode
impl FunctionNode
Sourcepub fn new(name: impl ToString, arguments: impl Expressions) -> Self
pub fn new(name: impl ToString, arguments: impl Expressions) -> Self
Create a new node
Sourcepub fn iter(&self) -> impl Iterator<Item = &Expression>
pub fn iter(&self) -> impl Iterator<Item = &Expression>
An iterator over the arguments of the function
Trait Implementations§
Source§impl Clone for FunctionNode
impl Clone for FunctionNode
Source§fn clone(&self) -> FunctionNode
fn clone(&self) -> FunctionNode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<FunctionNode> for Expression
impl From<FunctionNode> for Expression
Source§fn from(node: FunctionNode) -> Expression
fn from(node: FunctionNode) -> Expression
Converts to this type from the input type.
Source§impl PartialEq for FunctionNode
impl PartialEq for FunctionNode
impl Eq for FunctionNode
impl StructuralPartialEq for FunctionNode
Auto Trait Implementations§
impl Freeze for FunctionNode
impl RefUnwindSafe for FunctionNode
impl Send for FunctionNode
impl Sync for FunctionNode
impl Unpin for FunctionNode
impl UnwindSafe for FunctionNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)