pub struct CustomType {
pub name: String,
pub parameters: Vec<TypeParam>,
pub structure: Option<ConcreteType>,
pub variadic: Option<bool>,
pub description: Option<String>,
}Available on crate feature
parse only.Expand description
A validated Simple Extension type definition
Fields§
§name: StringType name
parameters: Vec<TypeParam>Type parameters (e.g., for generic types)
structure: Option<ConcreteType>Concrete structure definition, if any
variadic: Option<bool>Whether this type can have variadic parameters
description: Option<String>Human-readable description
Implementations§
Source§impl CustomType
impl CustomType
Sourcepub fn validate_name(name: &str) -> Result<(), InvalidTypeName>
pub fn validate_name(name: &str) -> Result<(), InvalidTypeName>
Check if this type name is valid according to Substrait naming rules
(see the Identifier rule in substrait/grammar/SubstraitLexer.g4).
Identifiers are case-insensitive and must start with a an ASCII letter,
_, or $, followed by ASCII letters, digits, _, or $.
Trait Implementations§
Source§impl Clone for CustomType
impl Clone for CustomType
Source§fn clone(&self) -> CustomType
fn clone(&self) -> CustomType
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CustomType
impl Debug for CustomType
Source§impl From<CustomType> for SimpleExtensionsTypesItem
impl From<CustomType> for SimpleExtensionsTypesItem
Source§fn from(value: CustomType) -> Self
fn from(value: CustomType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CustomType
impl PartialEq for CustomType
impl StructuralPartialEq for CustomType
Auto Trait Implementations§
impl Freeze for CustomType
impl RefUnwindSafe for CustomType
impl Send for CustomType
impl Sync for CustomType
impl Unpin for CustomType
impl UnwindSafe for CustomType
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)