Struct ra_ap_syntax::ast::ConstBlockPat
source · [−]pub struct ConstBlockPat { /* private fields */ }Implementations
sourceimpl ConstBlockPat
impl ConstBlockPat
pub fn const_token(&self) -> Option<SyntaxToken>
pub fn block_expr(&self) -> Option<BlockExpr>
Trait Implementations
sourceimpl AstNode for ConstBlockPat
impl AstNode for ConstBlockPat
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 ConstBlockPat
impl Clone for ConstBlockPat
sourcefn clone(&self) -> ConstBlockPat
fn clone(&self) -> ConstBlockPat
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 more
sourceimpl Debug for ConstBlockPat
impl Debug for ConstBlockPat
sourceimpl Display for ConstBlockPat
impl Display for ConstBlockPat
sourceimpl From<ConstBlockPat> for Pat
impl From<ConstBlockPat> for Pat
sourcefn from(node: ConstBlockPat) -> Pat
fn from(node: ConstBlockPat) -> Pat
Converts to this type from the input type.
sourceimpl Hash for ConstBlockPat
impl Hash for ConstBlockPat
sourceimpl PartialEq<ConstBlockPat> for ConstBlockPat
impl PartialEq<ConstBlockPat> for ConstBlockPat
sourcefn eq(&self, other: &ConstBlockPat) -> bool
fn eq(&self, other: &ConstBlockPat) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl Eq for ConstBlockPat
impl StructuralEq for ConstBlockPat
impl StructuralPartialEq for ConstBlockPat
Auto Trait Implementations
impl !RefUnwindSafe for ConstBlockPat
impl !Send for ConstBlockPat
impl !Sync for ConstBlockPat
impl Unpin for ConstBlockPat
impl !UnwindSafe for ConstBlockPat
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.