pub struct TriplesBlock { /* private fields */ }Implementations§
Source§impl TriplesBlock
impl TriplesBlock
pub fn group_graph_pattern(&self) -> Option<GroupGraphPattern>
Sourcepub fn trailing_dot(&self) -> Option<SyntaxToken>
pub fn trailing_dot(&self) -> Option<SyntaxToken>
Get the Dot token that terminates the first triple in this block. Grammar: TriplesBlock = TriplesSameSubjectPath ( ‘.’ TriplesBlock? )?
Trait Implementations§
Source§impl AstNode for TriplesBlock
impl AstNode for TriplesBlock
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
Auto Trait Implementations§
impl !RefUnwindSafe for TriplesBlock
impl !Send for TriplesBlock
impl !Sync for TriplesBlock
impl !UnwindSafe for TriplesBlock
impl Freeze for TriplesBlock
impl Unpin for TriplesBlock
impl UnsafeUnpin for TriplesBlock
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