Struct ra_ap_syntax::ast::AnyHasAttrs
source · pub struct AnyHasAttrs { /* private fields */ }
Implementations§
source§impl AnyHasAttrs
impl AnyHasAttrs
pub fn new<T: HasAttrs>(node: T) -> AnyHasAttrs
Trait Implementations§
source§impl AstNode for AnyHasAttrs
impl AstNode for AnyHasAttrs
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 AnyHasAttrs
impl Clone for AnyHasAttrs
source§fn clone(&self) -> AnyHasAttrs
fn clone(&self) -> AnyHasAttrs
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 AnyHasAttrs
impl Debug for AnyHasAttrs
source§impl From<AssocItem> for AnyHasAttrs
impl From<AssocItem> for AnyHasAttrs
source§impl From<Item> for AnyHasAttrs
impl From<Item> for AnyHasAttrs
source§impl From<RecordField> for AnyHasAttrs
impl From<RecordField> for AnyHasAttrs
source§fn from(node: RecordField) -> Self
fn from(node: RecordField) -> Self
Converts to this type from the input type.
source§impl From<TupleField> for AnyHasAttrs
impl From<TupleField> for AnyHasAttrs
source§fn from(node: TupleField) -> Self
fn from(node: TupleField) -> Self
Converts to this type from the input type.
source§impl From<Variant> for AnyHasAttrs
impl From<Variant> for AnyHasAttrs
source§impl HasAttrs for AnyHasAttrs
impl HasAttrs for AnyHasAttrs
source§impl Hash for AnyHasAttrs
impl Hash for AnyHasAttrs
source§impl PartialEq for AnyHasAttrs
impl PartialEq for AnyHasAttrs
source§fn eq(&self, other: &AnyHasAttrs) -> bool
fn eq(&self, other: &AnyHasAttrs) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AnyHasAttrs
impl StructuralPartialEq for AnyHasAttrs
Auto Trait Implementations§
impl Freeze for AnyHasAttrs
impl !RefUnwindSafe for AnyHasAttrs
impl !Send for AnyHasAttrs
impl !Sync for AnyHasAttrs
impl Unpin for AnyHasAttrs
impl !UnwindSafe for AnyHasAttrs
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> AttrsOwnerEdit for Twhere
T: HasAttrs,
impl<T> AttrsOwnerEdit for Twhere
T: HasAttrs,
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.