Struct datafusion_expr::expr::ScalarFunction
source · pub struct ScalarFunction {
pub fun: BuiltinScalarFunction,
pub args: Vec<Expr>,
}
Expand description
ScalarFunction expression
Fields§
§fun: BuiltinScalarFunction
The function
args: Vec<Expr>
List of expressions to feed to the functions as arguments
Implementations§
source§impl ScalarFunction
impl ScalarFunction
sourcepub fn new(fun: BuiltinScalarFunction, args: Vec<Expr>) -> Self
pub fn new(fun: BuiltinScalarFunction, args: Vec<Expr>) -> Self
Create a new ScalarFunction expression
Trait Implementations§
source§impl Clone for ScalarFunction
impl Clone for ScalarFunction
source§fn clone(&self) -> ScalarFunction
fn clone(&self) -> ScalarFunction
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 Debug for ScalarFunction
impl Debug for ScalarFunction
source§impl Hash for ScalarFunction
impl Hash for ScalarFunction
source§impl PartialEq<ScalarFunction> for ScalarFunction
impl PartialEq<ScalarFunction> for ScalarFunction
source§fn eq(&self, other: &ScalarFunction) -> bool
fn eq(&self, other: &ScalarFunction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ScalarFunction
impl StructuralEq for ScalarFunction
impl StructuralPartialEq for ScalarFunction
Auto Trait Implementations§
impl !RefUnwindSafe for ScalarFunction
impl Send for ScalarFunction
impl Sync for ScalarFunction
impl Unpin for ScalarFunction
impl !UnwindSafe for ScalarFunction
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.