pub struct MethodHandle {
pub reference_kind: u8,
pub reference_index: u16,
}Expand description
Method handle reference in the constant pool.
https://docs.oracle.com/javase/specs/jvms/se25/html/jvms-4.html#jvms-4.4.8
Fields§
§reference_kind: u8§reference_index: u16Implementations§
Source§impl MethodHandle
impl MethodHandle
pub fn get_kind(&self) -> Result<MethodHandleKind, ClassFormatErr>
Trait Implementations§
Source§impl Clone for MethodHandle
impl Clone for MethodHandle
Source§impl Debug for MethodHandle
impl Debug for MethodHandle
impl Eq for MethodHandle
Source§impl PartialEq for MethodHandle
impl PartialEq for MethodHandle
impl StructuralPartialEq for MethodHandle
Auto Trait Implementations§
impl Freeze for MethodHandle
impl RefUnwindSafe for MethodHandle
impl Send for MethodHandle
impl Sync for MethodHandle
impl Unpin for MethodHandle
impl UnsafeUnpin for MethodHandle
impl UnwindSafe for MethodHandle
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