Struct ra_ap_syntax::ast::MatchGuard
source · [−]pub struct MatchGuard { /* private fields */ }
Implementations
sourceimpl MatchGuard
impl MatchGuard
pub fn if_token(&self) -> Option<SyntaxToken>
Trait Implementations
sourceimpl AstNode for MatchGuard
impl AstNode for MatchGuard
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 MatchGuard
impl Clone for MatchGuard
sourcefn clone(&self) -> MatchGuard
fn clone(&self) -> MatchGuard
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 MatchGuard
impl Debug for MatchGuard
sourceimpl Display for MatchGuard
impl Display for MatchGuard
sourceimpl Hash for MatchGuard
impl Hash for MatchGuard
sourceimpl PartialEq<MatchGuard> for MatchGuard
impl PartialEq<MatchGuard> for MatchGuard
sourcefn eq(&self, other: &MatchGuard) -> bool
fn eq(&self, other: &MatchGuard) -> bool
impl Eq for MatchGuard
impl StructuralEq for MatchGuard
impl StructuralPartialEq for MatchGuard
Auto Trait Implementations
impl !RefUnwindSafe for MatchGuard
impl !Send for MatchGuard
impl !Sync for MatchGuard
impl Unpin for MatchGuard
impl !UnwindSafe for MatchGuard
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.