Struct UndefinedOutputs
pub struct UndefinedOutputs<A: Arch> { /* private fields */ }
Expand description
A collection of UndefinedOutput
s.
Implementations§
§impl<A: Arch> UndefinedOutputs<A>
impl<A: Arch> UndefinedOutputs<A>
pub fn new() -> Self
pub fn new() -> Self
Creates an empty list of undefined outputs.
pub fn of<P: UndefProvider<A>>(
instr: &[u8],
provider: &P,
) -> Result<UndefinedOutputs<A>, P::Error>
pub fn of<P: UndefProvider<A>>( instr: &[u8], provider: &P, ) -> Result<UndefinedOutputs<A>, P::Error>
Computes the undefined outputs of the instruction instr
using provider provider
.
pub fn iter(&self) -> impl Iterator<Item = &UndefinedOutput<A>>
pub fn iter(&self) -> impl Iterator<Item = &UndefinedOutput<A>>
Iterates over all undefined outputs in this list.
pub fn with(self, items: impl IntoUndefinedOutputs<A>) -> Self
pub fn with(self, items: impl IntoUndefinedOutputs<A>) -> Self
Merges self
with items
and returns a list of undefined outputs containing all undefined outputs from both lists.
Trait Implementations§
§impl<A: Debug + Arch> Debug for UndefinedOutputs<A>
impl<A: Debug + Arch> Debug for UndefinedOutputs<A>
§impl<A: Default + Arch> Default for UndefinedOutputs<A>
impl<A: Default + Arch> Default for UndefinedOutputs<A>
§fn default() -> UndefinedOutputs<A>
fn default() -> UndefinedOutputs<A>
Returns the “default value” for a type. Read more
§impl<A: Arch> IntoUndefinedOutputs<A> for UndefinedOutputs<A>
impl<A: Arch> IntoUndefinedOutputs<A> for UndefinedOutputs<A>
§fn add(self, target: &mut UndefinedOutputs<A>)
fn add(self, target: &mut UndefinedOutputs<A>)
Converts
self
to an undefined output, and adds it to the list of undefined outputs target
.Auto Trait Implementations§
impl<A> Freeze for UndefinedOutputs<A>
impl<A> RefUnwindSafe for UndefinedOutputs<A>
impl<A> Send for UndefinedOutputs<A>
impl<A> Sync for UndefinedOutputs<A>
impl<A> Unpin for UndefinedOutputs<A>
impl<A> UnwindSafe for UndefinedOutputs<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