Struct ra_ap_syntax::ast::TupleStructPat
source · pub struct TupleStructPat { /* private fields */ }
Implementations§
source§impl TupleStructPat
impl TupleStructPat
pub fn fields(&self) -> AstChildren<Pat> ⓘ
pub fn path(&self) -> Option<Path>
pub fn l_paren_token(&self) -> Option<SyntaxToken>
pub fn r_paren_token(&self) -> Option<SyntaxToken>
Trait Implementations§
source§impl AstNode for TupleStructPat
impl AstNode for TupleStructPat
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
source§impl Clone for TupleStructPat
impl Clone for TupleStructPat
source§fn clone(&self) -> TupleStructPat
fn clone(&self) -> TupleStructPat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TupleStructPat
impl Debug for TupleStructPat
source§impl Display for TupleStructPat
impl Display for TupleStructPat
source§impl From<TupleStructPat> for Pat
impl From<TupleStructPat> for Pat
source§fn from(node: TupleStructPat) -> Pat
fn from(node: TupleStructPat) -> Pat
Converts to this type from the input type.
source§impl Hash for TupleStructPat
impl Hash for TupleStructPat
source§impl PartialEq for TupleStructPat
impl PartialEq for TupleStructPat
source§fn eq(&self, other: &TupleStructPat) -> bool
fn eq(&self, other: &TupleStructPat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TupleStructPat
impl StructuralPartialEq for TupleStructPat
Auto Trait Implementations§
impl Freeze for TupleStructPat
impl !RefUnwindSafe for TupleStructPat
impl !Send for TupleStructPat
impl !Sync for TupleStructPat
impl Unpin for TupleStructPat
impl !UnwindSafe for TupleStructPat
Blanket Implementations§
source§impl<N> AstNodeEdit for N
impl<N> AstNodeEdit for N
fn indent_level(&self) -> IndentLevel
fn indent(&self, level: IndentLevel) -> Self
fn dedent(&self, level: IndentLevel) -> Self
fn reset_indent(&self) -> Self
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.