Struct ink_analyzer_ir::ast::AnyHasAttrs
source · pub struct AnyHasAttrs { /* private fields */ }Implementations§
source§impl AnyHasAttrs
impl AnyHasAttrs
pub fn new<T>(node: T) -> AnyHasAttrswhere
T: HasAttrs,
Trait Implementations§
source§impl AstNode for AnyHasAttrs
impl AstNode for AnyHasAttrs
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode<RustLanguage>) -> Option<AnyHasAttrs>
fn syntax(&self) -> &SyntaxNode<RustLanguage>
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§fn from(node: AssocItem) -> AnyHasAttrs
fn from(node: AssocItem) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<Item> for AnyHasAttrs
impl From<Item> for AnyHasAttrs
source§fn from(node: Item) -> AnyHasAttrs
fn from(node: Item) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<RecordField> for AnyHasAttrs
impl From<RecordField> for AnyHasAttrs
source§fn from(node: RecordField) -> AnyHasAttrs
fn from(node: RecordField) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<TupleField> for AnyHasAttrs
impl From<TupleField> for AnyHasAttrs
source§fn from(node: TupleField) -> AnyHasAttrs
fn from(node: TupleField) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<Variant> for AnyHasAttrs
impl From<Variant> for AnyHasAttrs
source§fn from(node: Variant) -> AnyHasAttrs
fn from(node: Variant) -> AnyHasAttrs
Converts to this type from the input type.
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 StructuralEq for AnyHasAttrs
impl StructuralPartialEq for AnyHasAttrs
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.