Enum rustc::mir::repr::Lvalue
[−]
[src]
pub enum Lvalue<'tcx> {
Var(u32),
Temp(u32),
Arg(u32),
Static(DefId),
ReturnPointer,
Projection(Box<LvalueProjection<'tcx>>),
}Unstable (
rustc_private)A path to a value; something that can be evaluated without changing or disturbing program state.
Variants
Var(u32)Unstable (
rustc_private)local variable declared by the user
Temp(u32)Unstable (
rustc_private)temporary introduced during lowering into MIR
Arg(u32)Unstable (
rustc_private)formal parameter of the function; note that these are NOT the bindings that the user declares, which are vars
Static(DefId)Unstable (
rustc_private)static or static mut variable
ReturnPointerUnstable (
rustc_private)the return pointer of the fn
Projection(Box<LvalueProjection<'tcx>>)Unstable (
rustc_private)projection out of an lvalue (access a field, deref a pointer, etc)
Methods
impl<'tcx> Lvalue<'tcx>[src]
fn field(self, f: Field, ty: Ty<'tcx>) -> Lvalue<'tcx>
fn deref(self) -> Lvalue<'tcx>
fn index(self, index: Operand<'tcx>) -> Lvalue<'tcx>
fn elem(self, elem: LvalueElem<'tcx>) -> Lvalue<'tcx>
Trait Implementations
impl<'tcx> Debug for Lvalue<'tcx>[src]
Derived Implementations
impl<'tcx> Decodable for Lvalue<'tcx>[src]
impl<'tcx> Encodable for Lvalue<'tcx>[src]
impl<'tcx> PartialEq for Lvalue<'tcx>[src]
fn eq(&self, __arg_0: &Lvalue<'tcx>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Lvalue<'tcx>) -> bool
This method tests for !=.
impl<'tcx> Clone for Lvalue<'tcx>[src]
fn clone(&self) -> Lvalue<'tcx>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more