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<ArrayExpr> for AnyHasAttrs
impl From<ArrayExpr> for AnyHasAttrs
source§fn from(node: ArrayExpr) -> AnyHasAttrs
fn from(node: ArrayExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<AsmExpr> for AnyHasAttrs
impl From<AsmExpr> for AnyHasAttrs
source§fn from(node: AsmExpr) -> AnyHasAttrs
fn from(node: AsmExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<AssocItem> for AnyHasAttrs
impl From<AssocItem> for AnyHasAttrs
source§impl From<AssocItemList> for AnyHasAttrs
impl From<AssocItemList> for AnyHasAttrs
source§fn from(node: AssocItemList) -> AnyHasAttrs
fn from(node: AssocItemList) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<AwaitExpr> for AnyHasAttrs
impl From<AwaitExpr> for AnyHasAttrs
source§fn from(node: AwaitExpr) -> AnyHasAttrs
fn from(node: AwaitExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<BecomeExpr> for AnyHasAttrs
impl From<BecomeExpr> for AnyHasAttrs
source§fn from(node: BecomeExpr) -> AnyHasAttrs
fn from(node: BecomeExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<BinExpr> for AnyHasAttrs
impl From<BinExpr> for AnyHasAttrs
source§fn from(node: BinExpr) -> AnyHasAttrs
fn from(node: BinExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<BlockExpr> for AnyHasAttrs
impl From<BlockExpr> for AnyHasAttrs
source§fn from(node: BlockExpr) -> AnyHasAttrs
fn from(node: BlockExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<BreakExpr> for AnyHasAttrs
impl From<BreakExpr> for AnyHasAttrs
source§fn from(node: BreakExpr) -> AnyHasAttrs
fn from(node: BreakExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<CallExpr> for AnyHasAttrs
impl From<CallExpr> for AnyHasAttrs
source§fn from(node: CallExpr) -> AnyHasAttrs
fn from(node: CallExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<CastExpr> for AnyHasAttrs
impl From<CastExpr> for AnyHasAttrs
source§fn from(node: CastExpr) -> AnyHasAttrs
fn from(node: CastExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<ClosureExpr> for AnyHasAttrs
impl From<ClosureExpr> for AnyHasAttrs
source§fn from(node: ClosureExpr) -> AnyHasAttrs
fn from(node: ClosureExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<Const> for AnyHasAttrs
impl From<Const> for AnyHasAttrs
source§fn from(node: Const) -> AnyHasAttrs
fn from(node: Const) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<ConstParam> for AnyHasAttrs
impl From<ConstParam> for AnyHasAttrs
source§fn from(node: ConstParam) -> AnyHasAttrs
fn from(node: ConstParam) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<ContinueExpr> for AnyHasAttrs
impl From<ContinueExpr> for AnyHasAttrs
source§fn from(node: ContinueExpr) -> AnyHasAttrs
fn from(node: ContinueExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<Enum> for AnyHasAttrs
impl From<Enum> for AnyHasAttrs
source§fn from(node: Enum) -> AnyHasAttrs
fn from(node: Enum) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<ExternBlock> for AnyHasAttrs
impl From<ExternBlock> for AnyHasAttrs
source§fn from(node: ExternBlock) -> AnyHasAttrs
fn from(node: ExternBlock) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<ExternCrate> for AnyHasAttrs
impl From<ExternCrate> for AnyHasAttrs
source§fn from(node: ExternCrate) -> AnyHasAttrs
fn from(node: ExternCrate) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<ExternItemList> for AnyHasAttrs
impl From<ExternItemList> for AnyHasAttrs
source§fn from(node: ExternItemList) -> AnyHasAttrs
fn from(node: ExternItemList) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<FieldExpr> for AnyHasAttrs
impl From<FieldExpr> for AnyHasAttrs
source§fn from(node: FieldExpr) -> AnyHasAttrs
fn from(node: FieldExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<Fn> for AnyHasAttrs
impl From<Fn> for AnyHasAttrs
source§fn from(node: Fn) -> AnyHasAttrs
fn from(node: Fn) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<ForExpr> for AnyHasAttrs
impl From<ForExpr> for AnyHasAttrs
source§fn from(node: ForExpr) -> AnyHasAttrs
fn from(node: ForExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<FormatArgsExpr> for AnyHasAttrs
impl From<FormatArgsExpr> for AnyHasAttrs
source§fn from(node: FormatArgsExpr) -> AnyHasAttrs
fn from(node: FormatArgsExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<IdentPat> for AnyHasAttrs
impl From<IdentPat> for AnyHasAttrs
source§fn from(node: IdentPat) -> AnyHasAttrs
fn from(node: IdentPat) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<IfExpr> for AnyHasAttrs
impl From<IfExpr> for AnyHasAttrs
source§fn from(node: IfExpr) -> AnyHasAttrs
fn from(node: IfExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<Impl> for AnyHasAttrs
impl From<Impl> for AnyHasAttrs
source§fn from(node: Impl) -> AnyHasAttrs
fn from(node: Impl) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<IndexExpr> for AnyHasAttrs
impl From<IndexExpr> for AnyHasAttrs
source§fn from(node: IndexExpr) -> AnyHasAttrs
fn from(node: IndexExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<Item> for AnyHasAttrs
impl From<Item> for AnyHasAttrs
source§impl From<ItemList> for AnyHasAttrs
impl From<ItemList> for AnyHasAttrs
source§fn from(node: ItemList) -> AnyHasAttrs
fn from(node: ItemList) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<LetExpr> for AnyHasAttrs
impl From<LetExpr> for AnyHasAttrs
source§fn from(node: LetExpr) -> AnyHasAttrs
fn from(node: LetExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<LetStmt> for AnyHasAttrs
impl From<LetStmt> for AnyHasAttrs
source§fn from(node: LetStmt) -> AnyHasAttrs
fn from(node: LetStmt) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<LifetimeParam> for AnyHasAttrs
impl From<LifetimeParam> for AnyHasAttrs
source§fn from(node: LifetimeParam) -> AnyHasAttrs
fn from(node: LifetimeParam) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<Literal> for AnyHasAttrs
impl From<Literal> for AnyHasAttrs
source§fn from(node: Literal) -> AnyHasAttrs
fn from(node: Literal) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<LoopExpr> for AnyHasAttrs
impl From<LoopExpr> for AnyHasAttrs
source§fn from(node: LoopExpr) -> AnyHasAttrs
fn from(node: LoopExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<MacroCall> for AnyHasAttrs
impl From<MacroCall> for AnyHasAttrs
source§fn from(node: MacroCall) -> AnyHasAttrs
fn from(node: MacroCall) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<MacroDef> for AnyHasAttrs
impl From<MacroDef> for AnyHasAttrs
source§fn from(node: MacroDef) -> AnyHasAttrs
fn from(node: MacroDef) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<MacroRules> for AnyHasAttrs
impl From<MacroRules> for AnyHasAttrs
source§fn from(node: MacroRules) -> AnyHasAttrs
fn from(node: MacroRules) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<MatchArm> for AnyHasAttrs
impl From<MatchArm> for AnyHasAttrs
source§fn from(node: MatchArm) -> AnyHasAttrs
fn from(node: MatchArm) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<MatchArmList> for AnyHasAttrs
impl From<MatchArmList> for AnyHasAttrs
source§fn from(node: MatchArmList) -> AnyHasAttrs
fn from(node: MatchArmList) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<MatchExpr> for AnyHasAttrs
impl From<MatchExpr> for AnyHasAttrs
source§fn from(node: MatchExpr) -> AnyHasAttrs
fn from(node: MatchExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<MethodCallExpr> for AnyHasAttrs
impl From<MethodCallExpr> for AnyHasAttrs
source§fn from(node: MethodCallExpr) -> AnyHasAttrs
fn from(node: MethodCallExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<Module> for AnyHasAttrs
impl From<Module> for AnyHasAttrs
source§fn from(node: Module) -> AnyHasAttrs
fn from(node: Module) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<OffsetOfExpr> for AnyHasAttrs
impl From<OffsetOfExpr> for AnyHasAttrs
source§fn from(node: OffsetOfExpr) -> AnyHasAttrs
fn from(node: OffsetOfExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<Param> for AnyHasAttrs
impl From<Param> for AnyHasAttrs
source§fn from(node: Param) -> AnyHasAttrs
fn from(node: Param) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<ParenExpr> for AnyHasAttrs
impl From<ParenExpr> for AnyHasAttrs
source§fn from(node: ParenExpr) -> AnyHasAttrs
fn from(node: ParenExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<PathExpr> for AnyHasAttrs
impl From<PathExpr> for AnyHasAttrs
source§fn from(node: PathExpr) -> AnyHasAttrs
fn from(node: PathExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<PrefixExpr> for AnyHasAttrs
impl From<PrefixExpr> for AnyHasAttrs
source§fn from(node: PrefixExpr) -> AnyHasAttrs
fn from(node: PrefixExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<RangeExpr> for AnyHasAttrs
impl From<RangeExpr> for AnyHasAttrs
source§fn from(node: RangeExpr) -> AnyHasAttrs
fn from(node: RangeExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<RecordExprField> for AnyHasAttrs
impl From<RecordExprField> for AnyHasAttrs
source§fn from(node: RecordExprField) -> AnyHasAttrs
fn from(node: RecordExprField) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<RecordExprFieldList> for AnyHasAttrs
impl From<RecordExprFieldList> for AnyHasAttrs
source§fn from(node: RecordExprFieldList) -> AnyHasAttrs
fn from(node: RecordExprFieldList) -> 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<RecordPatField> for AnyHasAttrs
impl From<RecordPatField> for AnyHasAttrs
source§fn from(node: RecordPatField) -> AnyHasAttrs
fn from(node: RecordPatField) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<RefExpr> for AnyHasAttrs
impl From<RefExpr> for AnyHasAttrs
source§fn from(node: RefExpr) -> AnyHasAttrs
fn from(node: RefExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<RestPat> for AnyHasAttrs
impl From<RestPat> for AnyHasAttrs
source§fn from(node: RestPat) -> AnyHasAttrs
fn from(node: RestPat) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<ReturnExpr> for AnyHasAttrs
impl From<ReturnExpr> for AnyHasAttrs
source§fn from(node: ReturnExpr) -> AnyHasAttrs
fn from(node: ReturnExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<SelfParam> for AnyHasAttrs
impl From<SelfParam> for AnyHasAttrs
source§fn from(node: SelfParam) -> AnyHasAttrs
fn from(node: SelfParam) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<SourceFile> for AnyHasAttrs
impl From<SourceFile> for AnyHasAttrs
source§fn from(node: SourceFile) -> AnyHasAttrs
fn from(node: SourceFile) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<Static> for AnyHasAttrs
impl From<Static> for AnyHasAttrs
source§fn from(node: Static) -> AnyHasAttrs
fn from(node: Static) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<StmtList> for AnyHasAttrs
impl From<StmtList> for AnyHasAttrs
source§fn from(node: StmtList) -> AnyHasAttrs
fn from(node: StmtList) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<Struct> for AnyHasAttrs
impl From<Struct> for AnyHasAttrs
source§fn from(node: Struct) -> AnyHasAttrs
fn from(node: Struct) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<Trait> for AnyHasAttrs
impl From<Trait> for AnyHasAttrs
source§fn from(node: Trait) -> AnyHasAttrs
fn from(node: Trait) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<TraitAlias> for AnyHasAttrs
impl From<TraitAlias> for AnyHasAttrs
source§fn from(node: TraitAlias) -> AnyHasAttrs
fn from(node: TraitAlias) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<TryExpr> for AnyHasAttrs
impl From<TryExpr> for AnyHasAttrs
source§fn from(node: TryExpr) -> AnyHasAttrs
fn from(node: TryExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<TupleExpr> for AnyHasAttrs
impl From<TupleExpr> for AnyHasAttrs
source§fn from(node: TupleExpr) -> AnyHasAttrs
fn from(node: TupleExpr) -> 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<TypeAlias> for AnyHasAttrs
impl From<TypeAlias> for AnyHasAttrs
source§fn from(node: TypeAlias) -> AnyHasAttrs
fn from(node: TypeAlias) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<TypeParam> for AnyHasAttrs
impl From<TypeParam> for AnyHasAttrs
source§fn from(node: TypeParam) -> AnyHasAttrs
fn from(node: TypeParam) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<UnderscoreExpr> for AnyHasAttrs
impl From<UnderscoreExpr> for AnyHasAttrs
source§fn from(node: UnderscoreExpr) -> AnyHasAttrs
fn from(node: UnderscoreExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<Union> for AnyHasAttrs
impl From<Union> for AnyHasAttrs
source§fn from(node: Union) -> AnyHasAttrs
fn from(node: Union) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<Use> for AnyHasAttrs
impl From<Use> for AnyHasAttrs
source§fn from(node: Use) -> AnyHasAttrs
fn from(node: Use) -> 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 From<WhileExpr> for AnyHasAttrs
impl From<WhileExpr> for AnyHasAttrs
source§fn from(node: WhileExpr) -> AnyHasAttrs
fn from(node: WhileExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<YeetExpr> for AnyHasAttrs
impl From<YeetExpr> for AnyHasAttrs
source§fn from(node: YeetExpr) -> AnyHasAttrs
fn from(node: YeetExpr) -> AnyHasAttrs
Converts to this type from the input type.
source§impl From<YieldExpr> for AnyHasAttrs
impl From<YieldExpr> for AnyHasAttrs
source§fn from(node: YieldExpr) -> AnyHasAttrs
fn from(node: YieldExpr) -> 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
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<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