[−][src]Enum peepmatic_runtime::part::Part
A part of an instruction, or a whole instruction itself.
These are the different values that can be matched in an optimization's left-hand side and then built up in its right-hand side.
Variants
An instruction (or result of an instruction).
Constant(Constant)
A constant value.
ConditionCode(ConditionCode)
A condition code.
Implementations
impl<I> Part<I> where
I: Copy + Debug + Eq,
[src]
I: Copy + Debug + Eq,
pub fn as_instruction(&self) -> Option<I>
[src]
pub fn is_instruction(&self) -> bool
[src]
pub fn unwrap_instruction(&self) -> I
[src]
pub fn as_constant(&self) -> Option<Constant>
[src]
pub fn is_constant(&self) -> bool
[src]
pub fn unwrap_constant(&self) -> Constant
[src]
pub fn as_condition_code(&self) -> Option<ConditionCode>
[src]
pub fn is_condition_code(&self) -> bool
[src]
pub fn unwrap_condition_code(&self) -> ConditionCode
[src]
Trait Implementations
impl<I: Clone> Clone for Part<I> where
I: Copy + Debug + Eq,
[src]
I: Copy + Debug + Eq,
impl<I: Copy> Copy for Part<I> where
I: Copy + Debug + Eq,
[src]
I: Copy + Debug + Eq,
impl<I: Debug> Debug for Part<I> where
I: Copy + Debug + Eq,
[src]
I: Copy + Debug + Eq,
impl<I: Eq> Eq for Part<I> where
I: Copy + Debug + Eq,
[src]
I: Copy + Debug + Eq,
impl<I> From<ConditionCode> for Part<I> where
I: Copy + Debug + Eq,
[src]
I: Copy + Debug + Eq,
fn from(c: ConditionCode) -> Part<I>
[src]
impl<I> From<Constant> for Part<I> where
I: Copy + Debug + Eq,
[src]
I: Copy + Debug + Eq,
impl<I: PartialEq> PartialEq<Part<I>> for Part<I> where
I: Copy + Debug + Eq,
[src]
I: Copy + Debug + Eq,
impl<I> StructuralEq for Part<I> where
I: Copy + Debug + Eq,
[src]
I: Copy + Debug + Eq,
impl<I> StructuralPartialEq for Part<I> where
I: Copy + Debug + Eq,
[src]
I: Copy + Debug + Eq,
Auto Trait Implementations
impl<I> RefUnwindSafe for Part<I> where
I: RefUnwindSafe,
I: RefUnwindSafe,
impl<I> Send for Part<I> where
I: Send,
I: Send,
impl<I> Sync for Part<I> where
I: Sync,
I: Sync,
impl<I> Unpin for Part<I> where
I: Unpin,
I: Unpin,
impl<I> UnwindSafe for Part<I> where
I: UnwindSafe,
I: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,