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 Funcwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Expression>: Freeze,
*const Expression is !null: Freeze,
impl Move for Func
impl RefUnwindSafe for Funcwhere
Atomic<*mut ()>: RefUnwindSafe,
Atomic<usize>: RefUnwindSafe,
OnceLock<Index>: RefUnwindSafe,
Atomic<u8>: RefUnwindSafe,
impl Send for Func
impl Sync for Func
impl Unpin for Func
impl UnsafeUnpin for Funcwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Expression>: UnsafeUnpin,
*const Expression is !null: UnsafeUnpin,
impl UnwindSafe for Funcwhere
RawVecInner: UnwindSafe,
BoxRaw<Expression>: UnwindSafe,
BoxRaw<Select>: UnwindSafe,
BoxRaw<WindowSpecification>: UnwindSafe,
&'static [u8]: UnwindSafe,
*const u8: UnwindSafe,
Align8<*mut ()>: UnwindSafe,
&'static Vtable: UnwindSafe,
Arc<Repr<Object>>: UnwindSafe,
BoxRaw<Query>: 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