Struct substrait_expr::builder::functions::ImplementationArg
source · pub struct ImplementationArg {
pub name: String,
pub arg_type: ImplementationArgType,
}Expand description
A named function argument
Fields§
§name: StringThe name of the argument
This is used for documentation and readability purposes. Consumers don’t generally care what the name is.
arg_type: ImplementationArgTypeThe type of the argument
Implementations§
source§impl ImplementationArg
impl ImplementationArg
sourcepub fn matches(
&self,
arg_type: &Type,
registry: &ExtensionsRegistry
) -> Result<bool, SubstraitExprError>
pub fn matches( &self, arg_type: &Type, registry: &ExtensionsRegistry ) -> Result<bool, SubstraitExprError>
Returns true if an expression of the given type could be used as this argument
There is no “enum” type so enum arguments will only recognize the string type
Trait Implementations§
source§impl Clone for ImplementationArg
impl Clone for ImplementationArg
source§fn clone(&self) -> ImplementationArg
fn clone(&self) -> ImplementationArg
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 moreAuto Trait Implementations§
impl RefUnwindSafe for ImplementationArg
impl Send for ImplementationArg
impl Sync for ImplementationArg
impl Unpin for ImplementationArg
impl UnwindSafe for ImplementationArg
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