#[repr(u8)]pub enum MethodHandleKind {
GetField = 1,
GetStatic = 2,
PutField = 3,
PutStatic = 4,
InvokeVirtual = 5,
InvokeStatic = 6,
InvokeSpecial = 7,
NewInvokeSpecial = 8,
InvokeInterface = 9,
}Expand description
Kind of method handle reference.
https://docs.oracle.com/javase/specs/jvms/se25/html/jvms-4.html#jvms-4.4.8
Variants§
GetField = 1
GetStatic = 2
PutField = 3
PutStatic = 4
InvokeVirtual = 5
InvokeStatic = 6
InvokeSpecial = 7
NewInvokeSpecial = 8
InvokeInterface = 9
Trait Implementations§
Source§impl Clone for MethodHandleKind
impl Clone for MethodHandleKind
Source§fn clone(&self) -> MethodHandleKind
fn clone(&self) -> MethodHandleKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MethodHandleKind
impl Debug for MethodHandleKind
impl Eq for MethodHandleKind
Source§impl PartialEq for MethodHandleKind
impl PartialEq for MethodHandleKind
Source§fn eq(&self, other: &MethodHandleKind) -> bool
fn eq(&self, other: &MethodHandleKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MethodHandleKind
Source§impl TryFrom<u8> for MethodHandleKind
impl TryFrom<u8> for MethodHandleKind
Source§type Error = TryFromPrimitiveError<MethodHandleKind>
type Error = TryFromPrimitiveError<MethodHandleKind>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for MethodHandleKind
impl TryFromPrimitive for MethodHandleKind
const NAME: &'static str = "MethodHandleKind"
type Primitive = u8
type Error = TryFromPrimitiveError<MethodHandleKind>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for MethodHandleKind
impl RefUnwindSafe for MethodHandleKind
impl Send for MethodHandleKind
impl Sync for MethodHandleKind
impl Unpin for MethodHandleKind
impl UnsafeUnpin for MethodHandleKind
impl UnwindSafe for MethodHandleKind
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