pub struct ArrayType { /* private fields */ }Expand description
A ArrayType node (family.ungram rule ArrayType).
Implementations§
Source§impl ArrayType
impl ArrayType
pub fn element(&self) -> Option<FieldType>
pub fn bound(&self) -> Option<Bound>
pub fn l_bracket_token(&self) -> Option<SyntaxToken>
pub fn semicolon_token(&self) -> Option<SyntaxToken>
pub fn r_bracket_token(&self) -> Option<SyntaxToken>
Trait Implementations§
Source§impl AstNode for ArrayType
impl AstNode for ArrayType
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.
impl Eq for ArrayType
impl StructuralPartialEq for ArrayType
Auto Trait Implementations§
impl !RefUnwindSafe for ArrayType
impl !Send for ArrayType
impl !Sync for ArrayType
impl !UnwindSafe for ArrayType
impl Freeze for ArrayType
impl Unpin for ArrayType
impl UnsafeUnpin for ArrayType
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