pub struct InjectEntry {Show 14 fields
pub kind: &'static str,
pub member: &'static Member,
pub at: &'static str,
pub target: &'static str,
pub ordinal: i32,
pub shift: &'static str,
pub cancellable: bool,
pub priority: i32,
pub index: i32,
pub constant: &'static str,
pub value_desc: &'static str,
pub write: bool,
pub locals: &'static str,
pub handler: Option<fn(&mut Hook<'_>)>,
}Expand description
A declared nanite: its kind, its member, where in it, its handler.
Fields§
§kind: &'static stryog_ids::nanite_kind.
member: &'static Member§at: &'static stryog_ids::mixin_at.
target: &'static strWhat an INVOKE/FIELD/NEW at names, else empty.
ordinal: i32§shift: &'static stryog_ids::mixin_shift.
cancellable: bool§priority: i32Among the point’s handlers (higher first).
index: i32A modify_arg’s argument, a modify_variable’s local (-1: by type).
constant: &'static strA modify_constant’s constant (int:5).
value_desc: &'static strA modify_variable’s local’s type (a descriptor, Mojang’s).
write: boolA FIELD redirect’s write, else its read.
locals: &'static strThe locals an inject asks for ("F, &I@1", yog_ids::nanite_local).
handler: Option<fn(&mut Hook<'_>)>None for what has no code of the mod’s (an added field, an interface).
Implementations§
Auto Trait Implementations§
impl Freeze for InjectEntry
impl RefUnwindSafe for InjectEntry
impl Send for InjectEntry
impl Sync for InjectEntry
impl Unpin for InjectEntry
impl UnsafeUnpin for InjectEntry
impl UnwindSafe for InjectEntry
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