pub enum MethodBody {
ByteCode(AttributeInfoCode),
Rust(Box<dyn JvmCallback>),
}Variants§
ByteCode(AttributeInfoCode)
Rust(Box<dyn JvmCallback>)
Implementations§
Source§impl MethodBody
impl MethodBody
pub fn from_rust(callback: Box<dyn JvmCallback>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MethodBody
impl !UnwindSafe for MethodBody
impl Freeze for MethodBody
impl Send for MethodBody
impl Sync for MethodBody
impl Unpin for MethodBody
impl UnsafeUnpin for MethodBody
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