pub struct MethodLoadBuilder { /* private fields */ }Expand description
Multi-step constructor using the builder pattern for a MethodLoad event.
Implementations§
Source§impl MethodLoadBuilder
impl MethodLoadBuilder
Sourcepub fn new(method_name: String, addr: *const u8, len: usize) -> Self
pub fn new(method_name: String, addr: *const u8, len: usize) -> Self
Creates a new MethodLoadBuilder from scratch.
addr is the pointer to the start of the code region, len is the size of this code
region in bytes.
Sourcepub fn class_file_name(self, class_file_name: String) -> Self
pub fn class_file_name(self, class_file_name: String) -> Self
Attache a class file.
Sourcepub fn source_file_name(self, source_file_name: String) -> Self
pub fn source_file_name(self, source_file_name: String) -> Self
Attach a source file.
Auto Trait Implementations§
impl Freeze for MethodLoadBuilder
impl RefUnwindSafe for MethodLoadBuilder
impl !Send for MethodLoadBuilder
impl !Sync for MethodLoadBuilder
impl Unpin for MethodLoadBuilder
impl UnwindSafe for MethodLoadBuilder
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