pub struct ServiceDef { /* private fields */ }Expand description
A ServiceDef node (family.ungram rule ServiceDef).
Implementations§
Source§impl ServiceDef
impl ServiceDef
pub fn name(&self) -> Option<DottedName>
pub fn shapes(&self) -> AstChildren<PathType> ⓘ
pub fn inline_members(&self) -> AstChildren<InterfaceMember> ⓘ
pub fn service_token(&self) -> Option<SyntaxToken>
pub fn colon_token(&self) -> Option<SyntaxToken>
pub fn comma_token(&self) -> Option<SyntaxToken>
pub fn l_brace_token(&self) -> Option<SyntaxToken>
pub fn r_brace_token(&self) -> Option<SyntaxToken>
Trait Implementations§
Source§impl AstNode for ServiceDef
impl AstNode for ServiceDef
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 ServiceDef
impl Clone for ServiceDef
Source§impl Debug for ServiceDef
impl Debug for ServiceDef
impl Eq for ServiceDef
Source§impl HasDocComments for ServiceDef
impl HasDocComments for ServiceDef
Source§fn doc_comments(&self) -> Vec<SyntaxToken> ⓘ
fn doc_comments(&self) -> Vec<SyntaxToken> ⓘ
The
DocComment tokens in the trivia run immediately preceding
this node, in source order.Source§impl Hash for ServiceDef
impl Hash for ServiceDef
Source§impl PartialEq for ServiceDef
impl PartialEq for ServiceDef
impl StructuralPartialEq for ServiceDef
Auto Trait Implementations§
impl !RefUnwindSafe for ServiceDef
impl !Send for ServiceDef
impl !Sync for ServiceDef
impl !UnwindSafe for ServiceDef
impl Freeze for ServiceDef
impl Unpin for ServiceDef
impl UnsafeUnpin for ServiceDef
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