Enum datafusion_expr::TypeSignature
source · pub enum TypeSignature {
Variadic(Vec<DataType>),
VariadicEqual,
VariadicAny,
Uniform(usize, Vec<DataType>),
Exact(Vec<DataType>),
Any(usize),
OneOf(Vec<TypeSignature>),
}
Expand description
A function’s type signature, which defines the function’s supported argument types.
Variants§
Variadic(Vec<DataType>)
arbitrary number of arguments of an common type out of a list of valid types
VariadicEqual
arbitrary number of arguments of an arbitrary but equal type
VariadicAny
arbitrary number of arguments with arbitrary types
Uniform(usize, Vec<DataType>)
fixed number of arguments of an arbitrary but equal type out of a list of valid types
Examples
- A function of one argument of f64 is
Uniform(1, vec![DataType::Float64])
- A function of one argument of f64 or f32 is
Uniform(1, vec![DataType::Float32, DataType::Float64])
Exact(Vec<DataType>)
exact number of arguments of an exact type
Any(usize)
fixed number of arguments of arbitrary types
OneOf(Vec<TypeSignature>)
One of a list of signatures
Trait Implementations§
source§impl Clone for TypeSignature
impl Clone for TypeSignature
source§fn clone(&self) -> TypeSignature
fn clone(&self) -> TypeSignature
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 TypeSignature
impl Debug for TypeSignature
source§impl Hash for TypeSignature
impl Hash for TypeSignature
source§impl PartialEq<TypeSignature> for TypeSignature
impl PartialEq<TypeSignature> for TypeSignature
source§fn eq(&self, other: &TypeSignature) -> bool
fn eq(&self, other: &TypeSignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TypeSignature
impl StructuralEq for TypeSignature
impl StructuralPartialEq for TypeSignature
Auto Trait Implementations§
impl RefUnwindSafe for TypeSignature
impl Send for TypeSignature
impl Sync for TypeSignature
impl Unpin for TypeSignature
impl UnwindSafe for TypeSignature
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.