pub struct NullJitStorage;Expand description
No-op storage installed by crate::vm::Vm::new_minimal. Holds
nothing; downcasting from luna-jit will fail by design (a
NullJitBackend is paired with NullJitStorage — neither
try_compile nor try_compile_trace reaches the downcast site
because both immediately return Skipped / None).
Trait Implementations§
Source§impl Default for NullJitStorage
impl Default for NullJitStorage
Source§fn default() -> NullJitStorage
fn default() -> NullJitStorage
Returns the “default value” for a type. Read more
Source§impl JitStorage for NullJitStorage
impl JitStorage for NullJitStorage
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Mutable downcast hook. luna-jit’s
CraneliftBackend
implementations call this then downcast_mut::<CraneliftJitStorage>()
to reach the concrete cache + handle collections.Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Immutable downcast hook. Symmetric with
Self::as_any_mut;
used by read-only diagnostics.Auto Trait Implementations§
impl Freeze for NullJitStorage
impl RefUnwindSafe for NullJitStorage
impl Send for NullJitStorage
impl Sync for NullJitStorage
impl Unpin for NullJitStorage
impl UnsafeUnpin for NullJitStorage
impl UnwindSafe for NullJitStorage
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