Enum databend_common_ast::ast::TypeName
source · pub enum TypeName {
Show 24 variants
Boolean,
UInt8,
UInt16,
UInt32,
UInt64,
Int8,
Int16,
Int32,
Int64,
Float32,
Float64,
Decimal {
precision: u8,
scale: u8,
},
Date,
Timestamp,
Binary,
String,
Array(Box<TypeName>),
Map {
key_type: Box<TypeName>,
val_type: Box<TypeName>,
},
Bitmap,
Tuple {
fields_name: Option<Vec<Identifier>>,
fields_type: Vec<TypeName>,
},
Variant,
Geometry,
Nullable(Box<TypeName>),
NotNull(Box<TypeName>),
}Variants§
Boolean
UInt8
UInt16
UInt32
UInt64
Int8
Int16
Int32
Int64
Float32
Float64
Decimal
Date
Timestamp
Binary
String
Array(Box<TypeName>)
Map
Bitmap
Tuple
Variant
Geometry
Nullable(Box<TypeName>)
NotNull(Box<TypeName>)
Implementations§
source§impl TypeName
impl TypeName
pub fn is_nullable(&self) -> bool
pub fn wrap_nullable(self) -> Self
pub fn wrap_not_null(self) -> Self
Trait Implementations§
impl StructuralPartialEq for TypeName
Auto Trait Implementations§
impl Freeze for TypeName
impl RefUnwindSafe for TypeName
impl Send for TypeName
impl Sync for TypeName
impl Unpin for TypeName
impl UnwindSafe for TypeName
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more