Struct EncodingWithFilters
pub struct EncodingWithFilters<A: Arch, C> {
pub encoding: Encoding<A, C>,
pub filters: Vec<InstructionFilter>,
}
Expand description
An Encoding
with pre-computed filters.
Fields§
§encoding: Encoding<A, C>
The encoding.
filters: Vec<InstructionFilter>
The precomputed value of encoding.filters()
.
Implementations§
§impl<A: Arch, C> EncodingWithFilters<A, C>
impl<A: Arch, C> EncodingWithFilters<A, C>
pub fn new(encoding: Encoding<A, C>) -> Self
pub fn new(encoding: Encoding<A, C>) -> Self
Pre-computes the filters for encoding
, and returns an EncodingWithFilters
.
Trait Implementations§
§impl<A: Clone + Arch, C: Clone> Clone for EncodingWithFilters<A, C>
impl<A: Clone + Arch, C: Clone> Clone for EncodingWithFilters<A, C>
§fn clone(&self) -> EncodingWithFilters<A, C>
fn clone(&self) -> EncodingWithFilters<A, C>
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<'de, A: Arch, C> Deserialize<'de> for EncodingWithFilters<A, C>where
C: Deserialize<'de>,
impl<'de, A: Arch, C> Deserialize<'de> for EncodingWithFilters<A, C>where
C: 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, C: PartialEq> PartialEq for EncodingWithFilters<A, C>
impl<A: Arch, C: PartialEq> PartialEq for EncodingWithFilters<A, C>
§impl<A: Arch, C> Serialize for EncodingWithFilters<A, C>where
C: Serialize,
impl<A: Arch, C> Serialize for EncodingWithFilters<A, C>where
C: Serialize,
§impl<A: Arch, C> WithFilters for EncodingWithFilters<A, C>
impl<A: Arch, C> WithFilters for EncodingWithFilters<A, C>
§fn filters(&self) -> &[InstructionFilter]
fn filters(&self) -> &[InstructionFilter]
Returns a set of (potentially overlapping) filters that cover the entire area covered by the type.
Auto Trait Implementations§
impl<A, C> Freeze for EncodingWithFilters<A, C>
impl<A, C> RefUnwindSafe for EncodingWithFilters<A, C>
impl<A, C> Send for EncodingWithFilters<A, C>where
C: Send,
impl<A, C> Sync for EncodingWithFilters<A, C>where
C: Sync,
impl<A, C> Unpin for EncodingWithFilters<A, C>
impl<A, C> UnwindSafe for EncodingWithFilters<A, C>
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