pub struct AnyHasName { /* private fields */ }
Implementations§
source§impl AnyHasName
impl AnyHasName
pub fn new<T: HasName>(node: T) -> AnyHasName
Trait Implementations§
source§impl 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,
source§impl Clone for AnyHasName
impl Clone for AnyHasName
source§fn clone(&self) -> AnyHasName
fn clone(&self) -> AnyHasName
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 AnyHasName
impl Debug for AnyHasName
source§impl From<AsmOperandNamed> for AnyHasName
impl From<AsmOperandNamed> for AnyHasName
source§fn from(node: AsmOperandNamed) -> AnyHasName
fn from(node: AsmOperandNamed) -> AnyHasName
Converts to this type from the input type.
source§impl From<Const> for AnyHasName
impl From<Const> for AnyHasName
source§fn from(node: Const) -> AnyHasName
fn from(node: Const) -> AnyHasName
Converts to this type from the input type.
source§impl From<ConstParam> for AnyHasName
impl From<ConstParam> for AnyHasName
source§fn from(node: ConstParam) -> AnyHasName
fn from(node: ConstParam) -> AnyHasName
Converts to this type from the input type.
source§impl From<Enum> for AnyHasName
impl From<Enum> for AnyHasName
source§fn from(node: Enum) -> AnyHasName
fn from(node: Enum) -> AnyHasName
Converts to this type from the input type.
source§impl From<Fn> for AnyHasName
impl From<Fn> for AnyHasName
source§fn from(node: Fn) -> AnyHasName
fn from(node: Fn) -> AnyHasName
Converts to this type from the input type.
source§impl From<FormatArgsArg> for AnyHasName
impl From<FormatArgsArg> for AnyHasName
source§fn from(node: FormatArgsArg) -> AnyHasName
fn from(node: FormatArgsArg) -> AnyHasName
Converts to this type from the input type.
source§impl From<IdentPat> for AnyHasName
impl From<IdentPat> for AnyHasName
source§fn from(node: IdentPat) -> AnyHasName
fn from(node: IdentPat) -> AnyHasName
Converts to this type from the input type.
source§impl From<MacroDef> for AnyHasName
impl From<MacroDef> for AnyHasName
source§fn from(node: MacroDef) -> AnyHasName
fn from(node: MacroDef) -> AnyHasName
Converts to this type from the input type.
source§impl From<MacroRules> for AnyHasName
impl From<MacroRules> for AnyHasName
source§fn from(node: MacroRules) -> AnyHasName
fn from(node: MacroRules) -> AnyHasName
Converts to this type from the input type.
source§impl From<Module> for AnyHasName
impl From<Module> for AnyHasName
source§fn from(node: Module) -> AnyHasName
fn from(node: Module) -> AnyHasName
Converts to this type from the input type.
source§impl From<RecordField> for AnyHasName
impl From<RecordField> for AnyHasName
source§fn from(node: RecordField) -> AnyHasName
fn from(node: RecordField) -> AnyHasName
Converts to this type from the input type.
source§impl From<Rename> for AnyHasName
impl From<Rename> for AnyHasName
source§fn from(node: Rename) -> AnyHasName
fn from(node: Rename) -> AnyHasName
Converts to this type from the input type.
source§impl From<SelfParam> for AnyHasName
impl From<SelfParam> for AnyHasName
source§fn from(node: SelfParam) -> AnyHasName
fn from(node: SelfParam) -> AnyHasName
Converts to this type from the input type.
source§impl From<Static> for AnyHasName
impl From<Static> for AnyHasName
source§fn from(node: Static) -> AnyHasName
fn from(node: Static) -> AnyHasName
Converts to this type from the input type.
source§impl From<Struct> for AnyHasName
impl From<Struct> for AnyHasName
source§fn from(node: Struct) -> AnyHasName
fn from(node: Struct) -> AnyHasName
Converts to this type from the input type.
source§impl From<Trait> for AnyHasName
impl From<Trait> for AnyHasName
source§fn from(node: Trait) -> AnyHasName
fn from(node: Trait) -> AnyHasName
Converts to this type from the input type.
source§impl From<TraitAlias> for AnyHasName
impl From<TraitAlias> for AnyHasName
source§fn from(node: TraitAlias) -> AnyHasName
fn from(node: TraitAlias) -> AnyHasName
Converts to this type from the input type.
source§impl From<TypeAlias> for AnyHasName
impl From<TypeAlias> for AnyHasName
source§fn from(node: TypeAlias) -> AnyHasName
fn from(node: TypeAlias) -> AnyHasName
Converts to this type from the input type.
source§impl From<TypeParam> for AnyHasName
impl From<TypeParam> for AnyHasName
source§fn from(node: TypeParam) -> AnyHasName
fn from(node: TypeParam) -> AnyHasName
Converts to this type from the input type.
source§impl From<Union> for AnyHasName
impl From<Union> for AnyHasName
source§fn from(node: Union) -> AnyHasName
fn from(node: Union) -> AnyHasName
Converts to this type from the input type.
source§impl From<Variant> for AnyHasName
impl From<Variant> for AnyHasName
source§fn from(node: Variant) -> AnyHasName
fn from(node: Variant) -> AnyHasName
Converts to this type from the input type.
source§impl Hash for AnyHasName
impl Hash for AnyHasName
source§impl PartialEq for AnyHasName
impl PartialEq for AnyHasName
impl Eq for AnyHasName
impl StructuralPartialEq for AnyHasName
Auto Trait Implementations§
impl Freeze for AnyHasName
impl !RefUnwindSafe for AnyHasName
impl !Send for AnyHasName
impl !Sync for AnyHasName
impl Unpin for AnyHasName
impl !UnwindSafe for AnyHasName
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> 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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
source§impl<N> Indent for N
impl<N> Indent for N
fn indent_level(&self) -> IndentLevel
fn indent(&self, by: IndentLevel)
fn dedent(&self, by: IndentLevel)
fn reindent_to(&self, target_level: IndentLevel)
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more