Enum scylladb_parse::CqlType
source · [−]pub enum CqlType {
Native(NativeType),
Collection(Box<CollectionType>),
UserDefined(UserDefinedType),
Tuple(Vec<CqlType>),
Custom(LitStr),
}Variants
Native(NativeType)
Collection(Box<CollectionType>)
UserDefined(UserDefinedType)
Tuple(Vec<CqlType>)
Custom(LitStr)
Trait Implementations
sourceimpl<'a> CustomToTokens<'a> for CqlType
impl<'a> CustomToTokens<'a> for CqlType
fn to_tokens(&'a self, tokens: &mut TokenStream)
sourceimpl From<CollectionType> for CqlType
impl From<CollectionType> for CqlType
sourcefn from(c: CollectionType) -> Self
fn from(c: CollectionType) -> Self
Converts to this type from the input type.
sourceimpl From<KeyspaceQualifiedName> for CqlType
impl From<KeyspaceQualifiedName> for CqlType
sourcefn from(original: UserDefinedType) -> CqlType
fn from(original: UserDefinedType) -> CqlType
Converts to this type from the input type.
sourceimpl From<NativeType> for CqlType
impl From<NativeType> for CqlType
sourcefn from(original: NativeType) -> CqlType
fn from(original: NativeType) -> CqlType
Converts to this type from the input type.
sourceimpl Ord for CqlType
impl Ord for CqlType
sourceimpl PartialOrd<CqlType> for CqlType
impl PartialOrd<CqlType> for CqlType
sourcefn partial_cmp(&self, other: &CqlType) -> Option<Ordering>
fn partial_cmp(&self, other: &CqlType) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl ToTokens for CqlType
impl ToTokens for CqlType
sourcefn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Write self to the given TokenStream. Read more
sourcefn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Convert self directly into a TokenStream object. Read more
sourcefn into_token_stream(self) -> TokenStream
fn into_token_stream(self) -> TokenStream
Convert self directly into a TokenStream object. Read more
impl Eq for CqlType
impl StructuralEq for CqlType
impl StructuralPartialEq for CqlType
Auto Trait Implementations
impl RefUnwindSafe for CqlType
impl Send for CqlType
impl Sync for CqlType
impl Unpin for CqlType
impl UnwindSafe for CqlType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more