Enum sqlparser::ast::ArrayElemTypeDef
source · pub enum ArrayElemTypeDef {
None,
AngleBracket(Box<DataType>),
SquareBracket(Box<DataType>, Option<u64>),
}
Expand description
Represents the data type of the elements in an array (if any) as well as the syntax used to declare the array.
For example: Bigquery/Hive use ARRAY<INT>
whereas snowflake uses ARRAY.
Variants§
None
ARRAY
AngleBracket(Box<DataType>)
ARRAY<INT>
SquareBracket(Box<DataType>, Option<u64>)
INT[]
or INT[2]
Trait Implementations§
source§impl Clone for ArrayElemTypeDef
impl Clone for ArrayElemTypeDef
source§fn clone(&self) -> ArrayElemTypeDef
fn clone(&self) -> ArrayElemTypeDef
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 moresource§impl Debug for ArrayElemTypeDef
impl Debug for ArrayElemTypeDef
source§impl<'de> Deserialize<'de> for ArrayElemTypeDef
impl<'de> Deserialize<'de> for ArrayElemTypeDef
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ArrayElemTypeDef
impl Hash for ArrayElemTypeDef
source§impl Ord for ArrayElemTypeDef
impl Ord for ArrayElemTypeDef
source§fn cmp(&self, other: &ArrayElemTypeDef) -> Ordering
fn cmp(&self, other: &ArrayElemTypeDef) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ArrayElemTypeDef
impl PartialEq for ArrayElemTypeDef
source§fn eq(&self, other: &ArrayElemTypeDef) -> bool
fn eq(&self, other: &ArrayElemTypeDef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ArrayElemTypeDef
impl PartialOrd for ArrayElemTypeDef
source§fn partial_cmp(&self, other: &ArrayElemTypeDef) -> Option<Ordering>
fn partial_cmp(&self, other: &ArrayElemTypeDef) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ArrayElemTypeDef
impl Serialize for ArrayElemTypeDef
source§impl Visit for ArrayElemTypeDef
impl Visit for ArrayElemTypeDef
source§impl VisitMut for ArrayElemTypeDef
impl VisitMut for ArrayElemTypeDef
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
impl Eq for ArrayElemTypeDef
impl StructuralPartialEq for ArrayElemTypeDef
Auto Trait Implementations§
impl Freeze for ArrayElemTypeDef
impl RefUnwindSafe for ArrayElemTypeDef
impl Send for ArrayElemTypeDef
impl Sync for ArrayElemTypeDef
impl Unpin for ArrayElemTypeDef
impl UnwindSafe for ArrayElemTypeDef
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