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§

source

fn same_kind(&self, other: &Type) -> Result<bool, SubstraitExprError>

Return true if two types are the same “kind”, ignoring nullability and type parameters

source

fn is_unknown(&self, registry: &ExtensionsRegistry) -> bool

Returns true if this is the unknown type

source

fn num_types(&self) -> u32

Returns the total number of types (including this one) represented by this type

Will return 1 if this is not a struct type

source

fn children(&self) -> Vec<&Type>

Returns the child types

Implementations on Foreign Types§

source§

impl TypeExt for Type

Implementors§