[−][src]Struct rustc_codegen_ssa::mir::place::PlaceRef

pub struct PlaceRef<'tcx, V> {
    pub llval: V,
    pub llextra: Option<V>,
    pub layout: TyAndLayout<'tcx>,
    pub align: Align,
}

Fields

llval: V

A pointer to the contents of the place.

llextra: Option<V>

This place's extra data if it is unsized, or None if null.

layout: TyAndLayout<'tcx>

The monomorphized type of this place, including variant information.

align: Align

The alignment we know for this place.

Implementations

impl<'a, 'tcx, V: CodegenObject> PlaceRef<'tcx, V>[src]

pub fn new_sized(llval: V, layout: TyAndLayout<'tcx>) -> PlaceRef<'tcx, V>[src]

pub fn new_sized_aligned(
    llval: V,
    layout: TyAndLayout<'tcx>,
    align: Align
) -> PlaceRef<'tcx, V>
[src]

pub fn alloca<Bx: BuilderMethods<'a, 'tcx, Value = V>>(
    bx: &mut Bx,
    layout: TyAndLayout<'tcx>
) -> Self
[src]

pub fn alloca_unsized_indirect<Bx: BuilderMethods<'a, 'tcx, Value = V>>(
    bx: &mut Bx,
    layout: TyAndLayout<'tcx>
) -> Self
[src]

Returns a place for an indirect reference to an unsized place.

pub fn len<Cx: ConstMethods<'tcx, Value = V>>(&self, cx: &Cx) -> V[src]

impl<'a, 'tcx, V: CodegenObject> PlaceRef<'tcx, V>[src]

pub fn project_field<Bx: BuilderMethods<'a, 'tcx, Value = V>>(
    self,
    bx: &mut Bx,
    ix: usize
) -> Self
[src]

Access a field, at a point when the value's case is known.

pub fn codegen_get_discr<Bx: BuilderMethods<'a, 'tcx, Value = V>>(
    self,
    bx: &mut Bx,
    cast_to: Ty<'tcx>
) -> V
[src]

Obtain the actual discriminant of a value.

pub fn codegen_set_discr<Bx: BuilderMethods<'a, 'tcx, Value = V>>(
    &self,
    bx: &mut Bx,
    variant_index: VariantIdx
)
[src]

Sets the discriminant for a new value of the given case of the given representation.

pub fn project_index<Bx: BuilderMethods<'a, 'tcx, Value = V>>(
    &self,
    bx: &mut Bx,
    llindex: V
) -> Self
[src]

pub fn project_downcast<Bx: BuilderMethods<'a, 'tcx, Value = V>>(
    &self,
    bx: &mut Bx,
    variant_index: VariantIdx
) -> Self
[src]

pub fn storage_live<Bx: BuilderMethods<'a, 'tcx, Value = V>>(&self, bx: &mut Bx)[src]

pub fn storage_dead<Bx: BuilderMethods<'a, 'tcx, Value = V>>(&self, bx: &mut Bx)[src]

Trait Implementations

impl<'tcx, V: Clone> Clone for PlaceRef<'tcx, V>[src]

impl<'tcx, V: Copy> Copy for PlaceRef<'tcx, V>[src]

impl<'tcx, V: Debug> Debug for PlaceRef<'tcx, V>[src]

Auto Trait Implementations

impl<'tcx, V> !RefUnwindSafe for PlaceRef<'tcx, V>

impl<'tcx, V> !Send for PlaceRef<'tcx, V>

impl<'tcx, V> !Sync for PlaceRef<'tcx, V>

impl<'tcx, V> Unpin for PlaceRef<'tcx, V> where
    V: Unpin, 

impl<'tcx, V> !UnwindSafe for PlaceRef<'tcx, V>

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.