pub struct Func {
pub name: String,
pub arguments: Vec<Expression>,
pub distinct: bool,
pub filter: Option<Box<Expression>>,
}Expand description
A function call: NAME([DISTINCT] args) [FILTER (WHERE ...)].
PHP: Utopia\Query\AST\Call\Func (name, arguments, distinct, filter).
Fields§
§name: StringThe function name (the parser upper-cases it).
arguments: Vec<Expression>The arguments.
distinct: boolWhether the arguments are DISTINCT.
filter: Option<Box<Expression>>The FILTER (WHERE ...) condition.
Implementations§
Source§impl Func
impl Func
Sourcepub fn new(
name: impl Into<String>,
arguments: Vec<Expression>,
distinct: bool,
filter: Option<Expression>,
) -> Result<Self>
pub fn new( name: impl Into<String>, arguments: Vec<Expression>, distinct: bool, filter: Option<Expression>, ) -> Result<Self>
A call of name with arguments, DISTINCT when distinct, and an
optional FILTER (WHERE ...) condition.
Fails when name is not a bare identifier (Grammar::is_identifier).
PHP: new Func($name, $arguments, $distinct, $filter).
Trait Implementations§
impl StructuralPartialEq for Func
Auto Trait Implementations§
impl Forget for Func
impl Freeze for Func
impl Move for Func
impl RefUnwindSafe for Func
impl Send for Func
impl Sync for Func
impl Unpin for Func
impl UnsafeUnpin for Func
impl UnwindSafe for Func
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