[][src]Struct llir::values::ReturnInstruction

pub struct ReturnInstruction<'ctx>(_, _);

Implementations

impl<'ctx> ReturnInstruction<'ctx>[src]

pub fn has_op(&self) -> bool[src]

Check if this return instruction has returned value

pub fn op(&self) -> Option<Operand<'ctx>>[src]

Get the returned value. The instruction might not contain one

Trait Implementations

impl<'ctx> AsInstruction<'ctx> for ReturnInstruction<'ctx>[src]

impl<'ctx> AsOperand<'ctx> for ReturnInstruction<'ctx>[src]

impl<'ctx> Clone for ReturnInstruction<'ctx>[src]

impl<'ctx> Copy for ReturnInstruction<'ctx>[src]

impl<'ctx> Debug for ReturnInstruction<'ctx>[src]

impl<'ctx> Eq for ReturnInstruction<'ctx>[src]

impl<'ctx> GetDebugMetadata<'ctx> for ReturnInstruction<'ctx>[src]

impl<'ctx> Hash for ReturnInstruction<'ctx>[src]

impl<'ctx> InstructionDebugLoc for ReturnInstruction<'ctx>[src]

impl<'ctx> InstructionTrait<'ctx> for ReturnInstruction<'ctx>[src]

impl<'ctx> PartialEq<ReturnInstruction<'ctx>> for ReturnInstruction<'ctx>[src]

impl<'ctx> Send for ReturnInstruction<'ctx>[src]

impl<'ctx> StructuralEq for ReturnInstruction<'ctx>[src]

impl<'ctx> StructuralPartialEq for ReturnInstruction<'ctx>[src]

impl<'ctx> Sync for ReturnInstruction<'ctx>[src]

impl<'ctx> ValueOpcode for ReturnInstruction<'ctx>[src]

Auto Trait Implementations

impl<'ctx> RefUnwindSafe for ReturnInstruction<'ctx>

impl<'ctx> Unpin for ReturnInstruction<'ctx>

impl<'ctx> UnwindSafe for ReturnInstruction<'ctx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.