pub enum PatchItem {
Add(Box<Decl>),
AddIs(Type),
Before {
method: Method,
uses: Vec<Local>,
body: Block,
},
After {
method: Method,
uses: Vec<Local>,
body: Block,
},
Inside {
method: Method,
points: Vec<Point>,
},
Read {
field: Name,
body: Block,
},
Write {
field: Name,
value: Name,
body: Block,
},
Replace {
method: Method,
body: Block,
},
Priority(i64, Span),
}Variants§
Add(Box<Decl>)
add saved var shield: Float = 0, add fn ….
AddIs(Type)
add is Chargeable.
Before
After
Inside
Read
read foodData { … }.
Write
write experienceLevel(value) { … }.
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