pub enum PatchNode {
Item(Item),
Field(Field),
Variant(Variant),
Param(Param),
Stmt(Stmt),
MatchArm(MatchArm),
Expr(Expr),
Type(Type),
Pattern(Pattern),
Doc(DocNode),
Comment(CommentNode),
}Expand description
Replaceable, movable, or insertable semantic fragment.
Variants§
Item(Item)
Top-level or nested item fragment.
Field(Field)
Struct field fragment.
Variant(Variant)
Enum variant fragment.
Param(Param)
Function parameter fragment.
Stmt(Stmt)
Statement fragment.
MatchArm(MatchArm)
Match arm fragment.
Expr(Expr)
Expression fragment.
Type(Type)
Type fragment.
Pattern(Pattern)
Pattern fragment.
Doc(DocNode)
Doc comment fragment.
Comment(CommentNode)
Line comment fragment.
Trait Implementations§
impl Eq for PatchNode
impl StructuralPartialEq for PatchNode
Auto Trait Implementations§
impl Freeze for PatchNode
impl RefUnwindSafe for PatchNode
impl Send for PatchNode
impl Sync for PatchNode
impl Unpin for PatchNode
impl UnsafeUnpin for PatchNode
impl UnwindSafe for PatchNode
Blanket Implementations§
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