pub struct AnyHasName { /* private fields */ }Implementations§
Source§impl AnyHasName
impl AnyHasName
pub fn new<T>(node: T) -> AnyHasNamewhere
T: HasName,
Trait Implementations§
Source§impl AstNode for AnyHasName
impl AstNode for AnyHasName
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode<RustLanguage>) -> Option<AnyHasName>
fn syntax(&self) -> &SyntaxNode<RustLanguage>
Source§fn kind() -> SyntaxKindwhere
Self: Sized,
fn kind() -> SyntaxKindwhere
Self: Sized,
This panics if the
SyntaxKind is not statically known.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 duplicate of the value. Read more
1.0.0 (const: unstable) · 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
impl Eq 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<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<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
Source§fn eq(&self, other: &AnyHasName) -> bool
fn eq(&self, other: &AnyHasName) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
impl !RefUnwindSafe for AnyHasName
impl !Send for AnyHasName
impl !Sync for AnyHasName
impl !UnwindSafe for AnyHasName
impl Freeze for AnyHasName
impl Unpin for AnyHasName
impl UnsafeUnpin 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 indent_with_mapping(&self, level: IndentLevel, make: &SyntaxFactory) -> 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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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