Struct gccjit::LValue
[−]
[src]
pub struct LValue<'ctx> { /* fields omitted */ }
An LValue in gccjit represents a value that has a concrete location in memory. A LValue can be converted into an RValue through the ToRValue trait. It is also possible to get the address of an LValue.
Methods
impl<'ctx> LValue<'ctx>
[src]
fn access_field(
&self,
loc: Option<Location<'ctx>>,
field: Field<'ctx>
) -> LValue<'ctx>
&self,
loc: Option<Location<'ctx>>,
field: Field<'ctx>
) -> LValue<'ctx>
Given an LValue x and a Field f, gets an LValue for the field access x.f.
fn get_address(&self, loc: Option<Location<'ctx>>) -> RValue<'ctx>
Given an LValue x, returns the RValue address of x, akin to C's &x.
Trait Implementations
impl<'ctx> Copy for LValue<'ctx>
[src]
impl<'ctx> Clone for LValue<'ctx>
[src]
fn clone(&self) -> LValue<'ctx>
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
impl<'ctx> ToObject<'ctx> for LValue<'ctx>
[src]
impl<'ctx> Debug for LValue<'ctx>
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.