Enum MaybeRef
pub enum MaybeRef<'a, A: Arch> {
Ref(SimpleStateRef<'a, A>),
ComplexRef(ComplexStateRef<'a, A>),
Normal(&'a SystemState<A>),
}
Expand description
A reference to a MaybeJitState
.
Variants§
Ref(SimpleStateRef<'a, A>)
Reference of MaybeJitState::SimpleJit
ComplexRef(ComplexStateRef<'a, A>)
Reference of MaybeJitState::ComplexJit
Normal(&'a SystemState<A>)
Reference of MaybeJitState::Normal
Trait Implementations§
§impl<A: Arch> AsRef<SystemState<A>> for MaybeRef<'_, A>
impl<A: Arch> AsRef<SystemState<A>> for MaybeRef<'_, A>
§fn as_ref(&self) -> &SystemState<A>
fn as_ref(&self) -> &SystemState<A>
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
impl<'a, A> Freeze for MaybeRef<'a, A>
impl<'a, A> !RefUnwindSafe for MaybeRef<'a, A>
impl<'a, A> !Send for MaybeRef<'a, A>
impl<'a, A> !Sync for MaybeRef<'a, A>
impl<'a, A> Unpin for MaybeRef<'a, A>
impl<'a, A> !UnwindSafe for MaybeRef<'a, 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
§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