pub struct Triple { /* private fields */ }Implementations§
Source§impl Triple
impl Triple
pub fn subject(&self) -> Option<Subject>
pub fn properties_list_path(&self) -> Option<PropertyListPath>
Sourcepub fn triples_block(&self) -> Option<TriplesBlock>
pub fn triples_block(&self) -> Option<TriplesBlock>
Get the outer TriplesBlock this Triple is part of.
NOTE: TriplesBlock is defined recursivly
Trait Implementations§
Source§impl AstNode for Triple
impl AstNode for Triple
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
impl StructuralPartialEq for Triple
Auto Trait Implementations§
impl !RefUnwindSafe for Triple
impl !Send for Triple
impl !Sync for Triple
impl !UnwindSafe for Triple
impl Freeze for Triple
impl Unpin for Triple
impl UnsafeUnpin for Triple
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