pub struct DottedName { /* private fields */ }Expand description
A DottedName node (family.ungram rule DottedName).
Implementations§
Source§impl DottedName
impl DottedName
pub fn ident_token(&self) -> Option<SyntaxToken>
pub fn dot_token(&self) -> Option<SyntaxToken>
Source§impl DottedName
impl DottedName
Sourcepub fn segments(&self) -> impl Iterator<Item = SyntaxToken> + '_
pub fn segments(&self) -> impl Iterator<Item = SyntaxToken> + '_
The lowercase_id segments of the dotted name, in source order — the
three ident tokens of veh.adas.cruise (ridl reference §14.5). The
dots between them are excluded; a consumer that needs the full dotted
text calls DottedName::text.
Trait Implementations§
Source§impl AstNode for DottedName
impl AstNode for DottedName
Source§fn cast(syntax: SyntaxNode) -> Option<Self>
fn cast(syntax: SyntaxNode) -> Option<Self>
Wraps
syntax if its kind matches this type; None otherwise.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
The underlying untyped node.
Source§impl Clone for DottedName
impl Clone for DottedName
Source§impl Debug for DottedName
impl Debug for DottedName
impl Eq for DottedName
Source§impl Hash for DottedName
impl Hash for DottedName
Source§impl PartialEq for DottedName
impl PartialEq for DottedName
impl StructuralPartialEq for DottedName
Auto Trait Implementations§
impl !RefUnwindSafe for DottedName
impl !Send for DottedName
impl !Sync for DottedName
impl !UnwindSafe for DottedName
impl Freeze for DottedName
impl Unpin for DottedName
impl UnsafeUnpin for DottedName
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