pub struct TableFunction { /* private fields */ }Expand description
A Function committed to the from-item form: the call plus gram.y’s
func_alias_clause, [ AS ] [ alias ] ( column_definition [, ...] ).
Function::as_table and Function::columns return this instead of
Function, and the expression-position enders — Function::as_,
Function::over, Function::over_name — do not exist here. That is the
point: func_alias_clause has exactly one AS shared between the alias and
the column definitions, so f() AS ("a" int) AS "r" — the column form plus
the select-list alias — is a syntax error, and this type makes it
unwritable rather than an error to render. The from-item alias is the
as_table alias.
from_functions accepts a plain
Function and a TableFunction alike, so f(..) and
f(..).columns(..) both go straight in.
Implementations§
Source§impl TableFunction
impl TableFunction
Trait Implementations§
Source§impl Clone for TableFunction
impl Clone for TableFunction
Source§fn clone(&self) -> TableFunction
fn clone(&self) -> TableFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TableFunction
impl Debug for TableFunction
Source§impl Expression for TableFunction
impl Expression for TableFunction
Source§impl From<Function> for TableFunction
impl From<Function> for TableFunction
Source§fn from(function: Function) -> TableFunction
fn from(function: Function) -> TableFunction
Converts to this type from the input type.
Source§impl IntoExprList for TableFunction
impl IntoExprList for TableFunction
Source§fn into_expr_list(self) -> Vec<Expr>
fn into_expr_list(self) -> Vec<Expr>
Perform the conversion.
Auto Trait Implementations§
impl !RefUnwindSafe for TableFunction
impl !UnwindSafe for TableFunction
impl Freeze for TableFunction
impl Send for TableFunction
impl Sync for TableFunction
impl Unpin for TableFunction
impl UnsafeUnpin for TableFunction
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