Struct ra_ap_syntax::ast::TupleStructPat
source · [−]pub struct TupleStructPat { /* private fields */ }
Implementations
sourceimpl TupleStructPat
impl TupleStructPat
pub fn path(&self) -> Option<Path>
pub fn l_paren_token(&self) -> Option<SyntaxToken>
pub fn fields(&self) -> AstChildren<Pat>ⓘNotable traits for AstChildren<N>impl<N: AstNode> Iterator for AstChildren<N> type Item = N;
pub fn r_paren_token(&self) -> Option<SyntaxToken>
Trait Implementations
sourceimpl 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,
sourceimpl Clone for TupleStructPat
impl Clone for TupleStructPat
sourcefn clone(&self) -> TupleStructPat
fn clone(&self) -> TupleStructPat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TupleStructPat
impl Debug for TupleStructPat
sourceimpl Display for TupleStructPat
impl Display for TupleStructPat
sourceimpl From<TupleStructPat> for Pat
impl From<TupleStructPat> for Pat
sourcefn from(node: TupleStructPat) -> Pat
fn from(node: TupleStructPat) -> Pat
Converts to this type from the input type.
sourceimpl Hash for TupleStructPat
impl Hash for TupleStructPat
sourceimpl PartialEq<TupleStructPat> for TupleStructPat
impl PartialEq<TupleStructPat> for TupleStructPat
sourcefn eq(&self, other: &TupleStructPat) -> bool
fn eq(&self, other: &TupleStructPat) -> bool
impl Eq for TupleStructPat
impl StructuralEq for TupleStructPat
impl StructuralPartialEq for TupleStructPat
Auto Trait Implementations
impl !RefUnwindSafe for TupleStructPat
impl !Send for TupleStructPat
impl !Sync for TupleStructPat
impl Unpin for TupleStructPat
impl !UnwindSafe for TupleStructPat
Blanket Implementations
sourceimpl<N> AstNodeEdit for Nwhere
N: AstNode + Clone,
impl<N> AstNodeEdit for Nwhere
N: AstNode + Clone,
fn indent_level(&self) -> IndentLevel
fn indent(&self, level: IndentLevel) -> Self
fn dedent(&self, level: IndentLevel) -> Self
fn reset_indent(&self) -> Self
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.