Struct lovm2::gen::Assign[][src]

pub struct Assign { /* fields omitted */ }

Storing data in various locations

Implementations

impl Assign[src]

pub fn local<U, T>(var: &U, expr: T) -> Assign where
    T: Into<Expr>,
    U: Into<Variable> + Clone
[src]

Assign data to a local variable

pub fn global<U, T>(var: &U, expr: T) -> Assign where
    T: Into<Expr>,
    U: Into<Variable> + Clone
[src]

Assign data to a global variable

pub fn set<U, T>(access: &U, expr: T) -> Assign where
    T: Into<Expr>,
    U: Into<Access> + Clone
[src]

Store data in a reference

pub fn increment<T>(var: &T) -> Assign where
    T: Into<Variable> + Clone
[src]

Increment a variable by one

pub fn decrement<T>(var: &T) -> Assign where
    T: Into<Variable> + Clone
[src]

Decrement a variable by one

Trait Implementations

impl Clone for Assign[src]

impl From<Assign> for HirElement[src]

impl HirLowering for Assign[src]

Auto Trait Implementations

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.