pub struct DistributionDef { /* private fields */ }Expand description
A DistributionDef node (family.ungram rule DistributionDef).
Implementations§
Source§impl DistributionDef
impl DistributionDef
pub fn name(&self) -> Option<Name>
pub fn attr_block(&self) -> Option<AttrBlock>
pub fn lines(&self) -> AstChildren<MemberLine> ⓘ
pub fn distribution_token(&self) -> Option<SyntaxToken>
pub fn l_brace_token(&self) -> Option<SyntaxToken>
pub fn comma_token(&self) -> Option<SyntaxToken>
pub fn r_brace_token(&self) -> Option<SyntaxToken>
Trait Implementations§
Source§impl AstNode for DistributionDef
impl AstNode for DistributionDef
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 DistributionDef
impl Clone for DistributionDef
Source§impl Debug for DistributionDef
impl Debug for DistributionDef
impl Eq for DistributionDef
Source§impl HasDocComments for DistributionDef
impl HasDocComments for DistributionDef
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 HasName for DistributionDef
impl HasName for DistributionDef
Source§impl Hash for DistributionDef
impl Hash for DistributionDef
Source§impl PartialEq for DistributionDef
impl PartialEq for DistributionDef
impl StructuralPartialEq for DistributionDef
Auto Trait Implementations§
impl !RefUnwindSafe for DistributionDef
impl !Send for DistributionDef
impl !Sync for DistributionDef
impl !UnwindSafe for DistributionDef
impl Freeze for DistributionDef
impl Unpin for DistributionDef
impl UnsafeUnpin for DistributionDef
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