Enum MaybeJitState
pub enum MaybeJitState<'j, A: Arch> {
SimpleJit(SimpleJitState<'j, A>),
ComplexJit(ComplexJitState<'j, A>),
Normal(SystemState<A>),
}
Expand description
A wrapper that implements AsSystemState
and can either contain a SimpleJitState
, ComplexJitState
or a normal SystemState
.
Variants§
SimpleJit(SimpleJitState<'j, A>)
Simple JIT state.
ComplexJit(ComplexJitState<'j, A>)
Complex JIT state.
Normal(SystemState<A>)
Normal SystemState
.
Trait Implementations§
§impl<A: Arch> AsSystemState<A> for &MaybeJitState<'_, A>
impl<A: Arch> AsSystemState<A> for &MaybeJitState<'_, A>
§type Output<'a> = MaybeRef<'a, A>
where
Self: 'a
type Output<'a> = MaybeRef<'a, A> where Self: 'a
The output type of
Self::as_system_state
.§fn as_system_state(&self) -> Self::Output<'_>
fn as_system_state(&self) -> Self::Output<'_>
Returns a type that implements
AsRef<SystemState<A>>
.
Should be a cheap operation, as it may be called often.§fn num_memory_mappings(&self) -> usize
fn num_memory_mappings(&self) -> usize
Returns the number of memory mappings in the state that
Self::as_system_state
will return.§impl<A: Arch> AsSystemState<A> for MaybeJitState<'_, A>
impl<A: Arch> AsSystemState<A> for MaybeJitState<'_, A>
§type Output<'a> = MaybeRef<'a, A>
where
Self: 'a
type Output<'a> = MaybeRef<'a, A> where Self: 'a
The output type of
Self::as_system_state
.§fn as_system_state(&self) -> Self::Output<'_>
fn as_system_state(&self) -> Self::Output<'_>
Returns a type that implements
AsRef<SystemState<A>>
.
Should be a cheap operation, as it may be called often.§fn num_memory_mappings(&self) -> usize
fn num_memory_mappings(&self) -> usize
Returns the number of memory mappings in the state that
Self::as_system_state
will return.§impl<'j, A: Clone + Arch> Clone for MaybeJitState<'j, A>
impl<'j, A: Clone + Arch> Clone for MaybeJitState<'j, A>
§fn clone(&self) -> MaybeJitState<'j, A>
fn clone(&self) -> MaybeJitState<'j, A>
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 more§impl<A: Arch> Debug for MaybeJitState<'_, A>
impl<A: Arch> Debug for MaybeJitState<'_, A>
§impl<'j, A: Arch> From<ComplexJitState<'j, A>> for MaybeJitState<'j, A>
impl<'j, A: Arch> From<ComplexJitState<'j, A>> for MaybeJitState<'j, A>
§fn from(value: ComplexJitState<'j, A>) -> Self
fn from(value: ComplexJitState<'j, A>) -> Self
Converts to this type from the input type.
§impl<'j, A: Arch> From<SimpleJitState<'j, A>> for MaybeJitState<'j, A>
impl<'j, A: Arch> From<SimpleJitState<'j, A>> for MaybeJitState<'j, A>
§fn from(value: SimpleJitState<'j, A>) -> Self
fn from(value: SimpleJitState<'j, A>) -> Self
Converts to this type from the input type.
§impl<A: Arch> From<SystemState<A>> for MaybeJitState<'_, A>
impl<A: Arch> From<SystemState<A>> for MaybeJitState<'_, A>
§fn from(value: SystemState<A>) -> Self
fn from(value: SystemState<A>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'j, A> Freeze for MaybeJitState<'j, A>
impl<'j, A> !RefUnwindSafe for MaybeJitState<'j, A>
impl<'j, A> !Send for MaybeJitState<'j, A>
impl<'j, A> !Sync for MaybeJitState<'j, A>
impl<'j, A> Unpin for MaybeJitState<'j, A>
impl<'j, A> !UnwindSafe for MaybeJitState<'j, A>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more