Enum Location
pub enum Location<A: Arch> {
Reg(A::Reg),
Memory(usize),
}
Expand description
A storage location in a CPU state.
Variants§
Implementations§
§impl<A: Arch> Location<A>
impl<A: Arch> Location<A>
pub fn kind(&self) -> LocationKind
pub fn kind(&self) -> LocationKind
Returns the type of the location.
pub fn matches_value_type_with(&self, other: &Location<A>) -> bool
pub fn matches_value_type_with(&self, other: &Location<A>) -> bool
Returns true if this location has the same ValueType
as other
.
Trait Implementations§
§impl<'de, A: Arch> Deserialize<'de> for Location<A>where
A::Reg: Deserialize<'de>,
impl<'de, A: Arch> Deserialize<'de> for Location<A>where
A::Reg: Deserialize<'de>,
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl<A: Arch> IntoDestWithSize<A> for Location<A>
impl<A: Arch> IntoDestWithSize<A> for Location<A>
§fn into_dest_with_size(self, size: Size) -> Dest<A>
fn into_dest_with_size(self, size: Size) -> Dest<A>
Converts
self
into a Dest
.§impl<A: Arch> IntoSourceWithSize<A> for Location<A>
impl<A: Arch> IntoSourceWithSize<A> for Location<A>
§fn into_source_with_size(self, size: Size) -> Source<A>
fn into_source_with_size(self, size: Size) -> Source<A>
Converts
self
into a Source
.§impl<A: Ord + Arch> Ord for Location<A>
impl<A: Ord + Arch> Ord for Location<A>
§impl<A: PartialOrd + Arch> PartialOrd for Location<A>where
A::Reg: PartialOrd,
impl<A: PartialOrd + Arch> PartialOrd for Location<A>where
A::Reg: PartialOrd,
impl<A: Copy + Arch> Copy for Location<A>
impl<A: Eq + Arch> Eq for Location<A>
impl<A: Arch> StructuralPartialEq for Location<A>
Auto Trait Implementations§
impl<A> Freeze for Location<A>
impl<A> RefUnwindSafe for Location<A>
impl<A> Send for Location<A>
impl<A> Sync for Location<A>
impl<A> Unpin for Location<A>
impl<A> UnwindSafe for Location<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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. 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