pub struct InstrPhi<'a>(_);
Expand description
Phi instruction
Implementations
sourceimpl<'a> InstrPhi<'a>
impl<'a> InstrPhi<'a>
sourcepub fn add_incoming(&mut self, items: impl AsRef<[(Value<'a>, BasicBlock<'a>)]>)
pub fn add_incoming(&mut self, items: impl AsRef<[(Value<'a>, BasicBlock<'a>)]>)
Add incoming items
sourcepub fn count_incoming(self) -> usize
pub fn count_incoming(self) -> usize
Return the number of incoming blocks/values
sourcepub fn incoming_block(self, index: usize) -> Result<BasicBlock<'a>, Error>
pub fn incoming_block(self, index: usize) -> Result<BasicBlock<'a>, Error>
Get incoming value
Trait Implementations
impl<'a> Copy for InstrPhi<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for InstrPhi<'a>
impl<'a> !Send for InstrPhi<'a>
impl<'a> !Sync for InstrPhi<'a>
impl<'a> Unpin for InstrPhi<'a>
impl<'a> UnwindSafe for InstrPhi<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more