Struct ittapi::jit::MethodLoadBuilder
source · [−]pub struct MethodLoadBuilder { /* private fields */ }
Expand description
Multi-step constructor using the builder pattern for a MethodLoad
event.
Implementations
sourceimpl 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 RefUnwindSafe for MethodLoadBuilder
impl !Send for MethodLoadBuilder
impl !Sync for MethodLoadBuilder
impl Unpin for MethodLoadBuilder
impl UnwindSafe for MethodLoadBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more