pub enum TType {
Option(Box<TType>),
Vec(Box<TType>),
Inner(InnerType),
Join(Box<TType>),
}
Expand description
Token type. A rust AST token, representing a type.
Variants§
Option(Box<TType>)
Vec(Box<TType>)
Inner(InnerType)
Database primitive, includes DateTime, Jsonb, etc.
Join(Box<TType>)
Implementations§
Source§impl TType
impl TType
pub fn joined_type(&self) -> Option<&TType>
pub fn is_string(&self) -> bool
pub fn is_json(&self) -> bool
pub fn is_join(&self) -> bool
pub fn is_option(&self) -> bool
pub fn inner_type_name(&self) -> String
pub fn inner_type_mut(&mut self) -> &mut InnerType
pub fn inner_type(&self) -> &InnerType
pub fn qualified_inner_name(&self) -> TokenStream
Trait Implementations§
Source§impl ToTokens for TType
impl ToTokens for TType
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl StructuralPartialEq for TType
Auto Trait Implementations§
impl Freeze for TType
impl RefUnwindSafe for TType
impl Send for TType
impl Sync for TType
impl Unpin for TType
impl UnwindSafe for TType
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.