pub struct CassandraAST {
pub statements: Vec<ParsedStatement>,
/* private fields */
}
Fields§
§statements: Vec<ParsedStatement>
the statement type of the query
Implementations§
Source§impl CassandraAST
impl CassandraAST
Sourcepub fn new(cassandra_statement: &str) -> CassandraAST
pub fn new(cassandra_statement: &str) -> CassandraAST
create an AST from the query string
Sourcepub fn node_text(&self, node: &Node<'_>) -> String
pub fn node_text(&self, node: &Node<'_>) -> String
retrieves the query value for the node (word or phrase enclosed by the node)
Sourcepub fn extract_text(&self, statement: &ParsedStatement) -> &str
pub fn extract_text(&self, statement: &ParsedStatement) -> &str
extracts the text for the statement from the original text.
Auto Trait Implementations§
impl Freeze for CassandraAST
impl RefUnwindSafe for CassandraAST
impl Send for CassandraAST
impl Sync for CassandraAST
impl Unpin for CassandraAST
impl UnwindSafe for CassandraAST
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> 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