Enum lovm2::gen::lir::LirElement [−][src]
Sum type for every LIR element.
Variants
Fields of Conv
tyid: ValueType
Fields of Entry
ident: &'hir Variable
Label(Label)
Operation(Operator)
Fields of Import
namespaced: bool
Interrupt(u16)
Implementations
impl<'hir> LirElement<'hir>
[src]
pub fn call(ident: &'hir Variable, argn: u8) -> LirElement<'hir>
[src]
pub fn conv(tyid: ValueType) -> LirElement<'hir>
[src]
pub fn entry(ident: &'hir Variable) -> LirElement<'hir>
[src]
pub fn jump(label: Label) -> LirElement<'hir>
[src]
pub fn jump_conditional(cond: bool, label: Label) -> LirElement<'hir>
[src]
pub fn push_constant(value: &'hir Value) -> LirElement<'hir>
[src]
pub fn push_constant_owned(value: Value) -> LirElement<'hir>
[src]
pub fn push_dynamic(scope: Scope, ident: &'hir Variable) -> LirElement<'hir>
[src]
pub fn operation<T>(op: T) -> LirElement<'hir> where
T: Into<Operator>,
[src]
T: Into<Operator>,
pub fn store(scope: Scope, ident: &'hir Variable) -> LirElement<'hir>
[src]
Trait Implementations
impl<'hir> Clone for LirElement<'hir>
[src]
pub fn clone(&self) -> LirElement<'hir>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'hir> Debug for LirElement<'hir>
[src]
impl<'_> Display for LirElement<'_>
[src]
Auto Trait Implementations
impl<'hir> !RefUnwindSafe for LirElement<'hir>
[src]
impl<'hir> !Send for LirElement<'hir>
[src]
impl<'hir> !Sync for LirElement<'hir>
[src]
impl<'hir> Unpin for LirElement<'hir>
[src]
impl<'hir> !UnwindSafe for LirElement<'hir>
[src]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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>,