pub struct IdentifierCollector {
pub identifiers: Vec<CqlIdentifier>,
}Expand description
Visitor that collects all identifiers in an AST node
Fields§
§identifiers: Vec<CqlIdentifier>Implementations§
Source§impl IdentifierCollector
impl IdentifierCollector
pub fn new() -> Self
pub fn into_identifiers(self) -> Vec<CqlIdentifier>
Trait Implementations§
Source§impl CqlVisitor<()> for IdentifierCollector
impl CqlVisitor<()> for IdentifierCollector
fn visit_statement(&mut self, statement: &CqlStatement) -> Result<()>
fn visit_select(&mut self, select: &CqlSelect) -> Result<()>
fn visit_insert(&mut self, insert: &CqlInsert) -> Result<()>
fn visit_update(&mut self, update: &CqlUpdate) -> Result<()>
fn visit_delete(&mut self, delete: &CqlDelete) -> Result<()>
fn visit_create_table(&mut self, create: &CqlCreateTable) -> Result<()>
fn visit_drop_table(&mut self, drop: &CqlDropTable) -> Result<()>
fn visit_create_index(&mut self, create: &CqlCreateIndex) -> Result<()>
fn visit_alter_table(&mut self, alter: &CqlAlterTable) -> Result<()>
fn visit_data_type(&mut self, data_type: &CqlDataType) -> Result<()>
fn visit_expression(&mut self, expression: &CqlExpression) -> Result<()>
fn visit_identifier(&mut self, identifier: &CqlIdentifier) -> Result<()>
fn visit_literal(&mut self, _literal: &CqlLiteral) -> Result<()>
Source§impl Debug for IdentifierCollector
impl Debug for IdentifierCollector
Source§impl Default for IdentifierCollector
impl Default for IdentifierCollector
Source§fn default() -> IdentifierCollector
fn default() -> IdentifierCollector
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IdentifierCollector
impl RefUnwindSafe for IdentifierCollector
impl Send for IdentifierCollector
impl Sync for IdentifierCollector
impl Unpin for IdentifierCollector
impl UnsafeUnpin for IdentifierCollector
impl UnwindSafe for IdentifierCollector
Blanket Implementations§
impl<T> Allocation for T
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