pub struct OsrBuild<D> {
pub def: D,
pub osr: Vec<OsrEntry>,
}Expand description
Output of an OSR-aware factory closure passed to BackendAdapter::on_invoke_osr.
Carries the backend-specific JitBackend::FunctionDef that compiles to
the main entry point, plus a vector of OsrEntrys — one per hot loop
header the JIT plans to emit. The adapter compiles the def via the
backend and hands both the resulting code pointer and osr entries to
the bead atomically.
Fields§
§def: D§osr: Vec<OsrEntry>Auto Trait Implementations§
impl<D> Freeze for OsrBuild<D>where
D: Freeze,
impl<D> RefUnwindSafe for OsrBuild<D>where
D: RefUnwindSafe,
impl<D> Send for OsrBuild<D>where
D: Send,
impl<D> Sync for OsrBuild<D>where
D: Sync,
impl<D> Unpin for OsrBuild<D>where
D: Unpin,
impl<D> UnsafeUnpin for OsrBuild<D>where
D: UnsafeUnpin,
impl<D> UnwindSafe for OsrBuild<D>where
D: UnwindSafe,
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