#[repr(C)]pub struct OnBeforeParseResult {
pub __struct_size: usize,
pub source_ptr: *mut u8,
pub source_len: usize,
pub loader: u8,
pub fetchSourceCode: Option<unsafe extern "C" fn(args: *const OnBeforeParseArguments, result: *mut OnBeforeParseResult) -> c_int>,
pub plugin_source_code_context: *mut c_void,
pub free_plugin_source_code_context: Option<unsafe extern "C" fn(ctx: *mut c_void)>,
pub log: Option<unsafe extern "C" fn(args: *const OnBeforeParseArguments, options: *mut BunLogOptions)>,
}Fields§
§__struct_size: usize§source_ptr: *mut u8§source_len: usize§loader: u8§fetchSourceCode: Option<unsafe extern "C" fn(args: *const OnBeforeParseArguments, result: *mut OnBeforeParseResult) -> c_int>§plugin_source_code_context: *mut c_void§free_plugin_source_code_context: Option<unsafe extern "C" fn(ctx: *mut c_void)>§log: Option<unsafe extern "C" fn(args: *const OnBeforeParseArguments, options: *mut BunLogOptions)>Trait Implementations§
Source§impl Clone for OnBeforeParseResult
impl Clone for OnBeforeParseResult
Source§fn clone(&self) -> OnBeforeParseResult
fn clone(&self) -> OnBeforeParseResult
Returns a copy of the value. Read more
1.0.0 · 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 OnBeforeParseResult
impl Debug for OnBeforeParseResult
impl Copy for OnBeforeParseResult
Auto Trait Implementations§
impl Freeze for OnBeforeParseResult
impl RefUnwindSafe for OnBeforeParseResult
impl !Send for OnBeforeParseResult
impl !Sync for OnBeforeParseResult
impl Unpin for OnBeforeParseResult
impl UnwindSafe for OnBeforeParseResult
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