Trait substrait_expr::helpers::types::TypeExt
source · pub trait TypeExt {
// Required methods
fn same_kind(&self, other: &Type) -> Result<bool, SubstraitExprError>;
fn is_unknown(&self, registry: &ExtensionsRegistry) -> bool;
fn num_types(&self) -> u32;
fn children(&self) -> Vec<&Type>;
}Expand description
Helper methods for substrait Type objects
Required Methods§
sourcefn same_kind(&self, other: &Type) -> Result<bool, SubstraitExprError>
fn same_kind(&self, other: &Type) -> Result<bool, SubstraitExprError>
Return true if two types are the same “kind”, ignoring nullability and type parameters
sourcefn is_unknown(&self, registry: &ExtensionsRegistry) -> bool
fn is_unknown(&self, registry: &ExtensionsRegistry) -> bool
Returns true if this is the unknown type