pub enum PatchItem {
Add(Box<Decl>),
AddBases(Vec<Type>),
Before {
method: Target,
uses: Vec<Local>,
body: Block,
},
After {
method: Target,
uses: Vec<Local>,
body: Block,
},
Inside {
method: Target,
points: Vec<Point>,
},
Read {
field: Name,
body: Block,
},
Write {
field: Name,
body: Block,
},
Replace {
method: Target,
body: Block,
},
Priority(i64, Span),
}Variants§
Add(Box<Decl>)
add saved float Shield = 0;, add void Zap() { … }.
AddBases(Vec<Type>)
add : IChargeable;.
Before
After
Inside
Read
read FoodData { … }.
Write
write ExperienceLevel { … }: value the new one.
Replace
Priority(i64, Span)
Trait Implementations§
impl StructuralPartialEq for PatchItem
Auto Trait Implementations§
impl Freeze for PatchItem
impl RefUnwindSafe for PatchItem
impl Send for PatchItem
impl Sync for PatchItem
impl Unpin for PatchItem
impl UnsafeUnpin for PatchItem
impl UnwindSafe for PatchItem
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