Enum datafusion_expr::TypeSignature
source · [−]pub enum TypeSignature {
Variadic(Vec<DataType>),
VariadicEqual,
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
Uniform(usize, Vec<DataType>)
fixed number of arguments of an arbitrary but equal type out of a list of valid types
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
sourceimpl Clone for TypeSignature
impl Clone for TypeSignature
sourcefn clone(&self) -> TypeSignature
fn clone(&self) -> TypeSignature
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TypeSignature
impl Debug for TypeSignature
sourceimpl Hash for TypeSignature
impl Hash for TypeSignature
sourceimpl PartialEq<TypeSignature> for TypeSignature
impl PartialEq<TypeSignature> for TypeSignature
sourcefn 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 ==
. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more