pub struct RValue<'ctx> { /* private fields */ }
Expand description
An RValue is a value that may or may not have a storage address in gccjit. RValues can be dereferenced, used for field accesses, and are the parameters given to a majority of the gccjit API calls.
Implementations§
source§impl<'ctx> RValue<'ctx>
impl<'ctx> RValue<'ctx>
sourcepub fn access_field(
&self,
loc: Option<Location<'ctx>>,
field: Field<'ctx>
) -> RValue<'ctx>
pub fn access_field( &self, loc: Option<Location<'ctx>>, field: Field<'ctx> ) -> RValue<'ctx>
Given an RValue x and a Field f, returns an RValue representing C’s x.f.
sourcepub fn dereference_field(
&self,
loc: Option<Location<'ctx>>,
field: Field<'ctx>
) -> LValue<'ctx>
pub fn dereference_field( &self, loc: Option<Location<'ctx>>, field: Field<'ctx> ) -> LValue<'ctx>
Given an RValue x and a Field f, returns an LValue representing C’s x->f.
sourcepub fn dereference(&self, loc: Option<Location<'ctx>>) -> LValue<'ctx>
pub fn dereference(&self, loc: Option<Location<'ctx>>) -> LValue<'ctx>
Given a RValue x, returns an RValue that represents *x.
Trait Implementations§
source§impl<'ctx> PartialEq for RValue<'ctx>
impl<'ctx> PartialEq for RValue<'ctx>
impl<'ctx> Copy for RValue<'ctx>
impl<'ctx> Eq for RValue<'ctx>
impl<'ctx> StructuralPartialEq for RValue<'ctx>
Auto Trait Implementations§
impl<'ctx> RefUnwindSafe for RValue<'ctx>
impl<'ctx> !Send for RValue<'ctx>
impl<'ctx> !Sync for RValue<'ctx>
impl<'ctx> Unpin for RValue<'ctx>
impl<'ctx> UnwindSafe for RValue<'ctx>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more