Enum cranelift_codegen::machinst::MachTerminator
source · [−]pub enum MachTerminator<'a> {
None,
Ret,
Uncond(MachLabel),
Cond(MachLabel, MachLabel),
Indirect(&'a [MachLabel]),
}
Expand description
Describes a block terminator (not call) in the vcode, when its branches have not yet been finalized (so a branch may have two targets).
Variants
None
Not a terminator.
Ret
A return instruction.
Uncond(MachLabel)
An unconditional branch to another block.
Cond(MachLabel, MachLabel)
A conditional branch to one of two other blocks.
Indirect(&'a [MachLabel])
An indirect branch with known possible targets.
Trait Implementations
sourceimpl<'a> Clone for MachTerminator<'a>
impl<'a> Clone for MachTerminator<'a>
sourcefn clone(&self) -> MachTerminator<'a>
fn clone(&self) -> MachTerminator<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for MachTerminator<'a>
impl<'a> Debug for MachTerminator<'a>
sourceimpl<'a> PartialEq<MachTerminator<'a>> for MachTerminator<'a>
impl<'a> PartialEq<MachTerminator<'a>> for MachTerminator<'a>
sourcefn eq(&self, other: &MachTerminator<'a>) -> bool
fn eq(&self, other: &MachTerminator<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MachTerminator<'a>) -> bool
fn ne(&self, other: &MachTerminator<'a>) -> bool
This method tests for !=
.
impl<'a> Eq for MachTerminator<'a>
impl<'a> StructuralEq for MachTerminator<'a>
impl<'a> StructuralPartialEq for MachTerminator<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for MachTerminator<'a>
impl<'a> Send for MachTerminator<'a>
impl<'a> Sync for MachTerminator<'a>
impl<'a> Unpin for MachTerminator<'a>
impl<'a> UnwindSafe for MachTerminator<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more