Skip to main content

InjectEntry

Struct InjectEntry 

Source
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 str

yog_ids::nanite_kind.

§member: &'static Member§at: &'static str

yog_ids::mixin_at.

§target: &'static str

What an INVOKE/FIELD/NEW at names, else empty.

§ordinal: i32§shift: &'static str

yog_ids::mixin_shift.

§cancellable: bool§priority: i32

Among the point’s handlers (higher first).

§index: i32

A modify_arg’s argument, a modify_variable’s local (-1: by type).

§constant: &'static str

A modify_constant’s constant (int:5).

§value_desc: &'static str

A modify_variable’s local’s type (a descriptor, Mojang’s).

§write: bool

A FIELD redirect’s write, else its read.

§locals: &'static str

The 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§

Source§

impl InjectEntry

Source

pub fn spec(&self) -> Inject

What the host makes of it.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Arg<T> for T

Source§

fn arg(self) -> T

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.