pub struct MethodBuilder { /* private fields */ }Implementations§
Source§impl MethodBuilder
impl MethodBuilder
pub fn new(access_flags: u16, name: &str, descriptor: &str) -> Self
pub fn code(&mut self, max_stack: u16, max_locals: u16) -> &mut InsnList
pub fn set_code( &mut self, max_stack: u16, max_locals: u16, insns: InsnList, ) -> &mut Self
pub fn add_attribute(&mut self, attr: AttributeInfo) -> &mut Self
pub fn add_code_exception(&mut self, entry: ExceptionTableEntry) -> &mut Self
pub fn add_code_attribute(&mut self, attr: AttributeInfo) -> &mut Self
Auto Trait Implementations§
impl Freeze for MethodBuilder
impl RefUnwindSafe for MethodBuilder
impl Send for MethodBuilder
impl Sync for MethodBuilder
impl Unpin for MethodBuilder
impl UnsafeUnpin for MethodBuilder
impl UnwindSafe for MethodBuilder
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