Struct ra_ap_syntax::ast::AnyHasName
source · [−]pub struct AnyHasName { /* private fields */ }
Implementations
sourceimpl AnyHasName
impl AnyHasName
pub fn new<T: HasName>(node: T) -> AnyHasName
Trait Implementations
sourceimpl AstNode for AnyHasName
impl AstNode for AnyHasName
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 AnyHasName
impl Clone for AnyHasName
sourcefn clone(&self) -> AnyHasName
fn clone(&self) -> AnyHasName
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AnyHasName
impl Debug for AnyHasName
sourceimpl Hash for AnyHasName
impl Hash for AnyHasName
sourceimpl PartialEq<AnyHasName> for AnyHasName
impl PartialEq<AnyHasName> for AnyHasName
sourcefn eq(&self, other: &AnyHasName) -> bool
fn eq(&self, other: &AnyHasName) -> bool
impl Eq for AnyHasName
impl StructuralEq for AnyHasName
impl StructuralPartialEq for AnyHasName
Auto Trait Implementations
impl !RefUnwindSafe for AnyHasName
impl !Send for AnyHasName
impl !Sync for AnyHasName
impl Unpin for AnyHasName
impl !UnwindSafe for AnyHasName
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.