pub struct SelectClause { /* private fields */ }Implementations§
Source§impl SelectClause
impl SelectClause
Sourcepub fn variables(&self) -> Vec<Var>
pub fn variables(&self) -> Vec<Var>
All selected variables. This excludes variables used in assignments
Example
Select ?a (?b as ?c) {
...
}here variables would return just ?a and not ?b or ?c.
Sourcepub fn projected_variables(&self) -> Vec<Var>
pub fn projected_variables(&self) -> Vec<Var>
All selected variables plus all assigned variables. This excludes variables used in assignments
Example
Select ?a (?b as ?c) {
...
}result: [?a, ?c]
pub fn is_star_selection(&self) -> bool
Sourcepub fn assignments(&self) -> Vec<Assignment>
pub fn assignments(&self) -> Vec<Assignment>
All assignments in the select clause.
pub fn select_query(&self) -> Option<SelectQuery>
Trait Implementations§
Source§impl AstNode for SelectClause
impl AstNode for SelectClause
fn kind() -> SyntaxKind
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
Source§fn visible_variables(&self) -> Vec<Var>
fn visible_variables(&self) -> Vec<Var>
Returns all variables “visible” from outside the node.
fn can_cast(kind: SyntaxKind) -> bool
fn has_error(&self) -> bool
fn collect_decendants( &self, matcher: &impl Fn(SyntaxKind) -> bool, ) -> Vec<SyntaxNode> ⓘ
fn preorder_find_kind(&self, kind: SyntaxKind) -> Vec<SyntaxNode> ⓘ
fn used_prefixes(&self) -> Vec<String>
fn text(&self) -> String
fn text_until(&self, offset: TextSize) -> String
Source§impl Clone for SelectClause
impl Clone for SelectClause
Source§fn clone(&self) -> SelectClause
fn clone(&self) -> SelectClause
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SelectClause
impl Debug for SelectClause
Source§impl PartialEq for SelectClause
impl PartialEq for SelectClause
Source§fn eq(&self, other: &SelectClause) -> bool
fn eq(&self, other: &SelectClause) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SelectClause
Auto Trait Implementations§
impl Freeze for SelectClause
impl !RefUnwindSafe for SelectClause
impl !Send for SelectClause
impl !Sync for SelectClause
impl Unpin for SelectClause
impl UnsafeUnpin for SelectClause
impl !UnwindSafe for SelectClause
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