[−][src]Struct rustc_codegen_ssa::mir::place::PlaceRef
Fields
llval: VA 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: AlignThe 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]
llval: V,
layout: TyAndLayout<'tcx>,
align: Align
) -> PlaceRef<'tcx, V>
pub fn alloca<Bx: BuilderMethods<'a, 'tcx, Value = V>>(
bx: &mut Bx,
layout: TyAndLayout<'tcx>
) -> Self[src]
bx: &mut Bx,
layout: TyAndLayout<'tcx>
) -> Self
pub fn alloca_unsized_indirect<Bx: BuilderMethods<'a, 'tcx, Value = V>>(
bx: &mut Bx,
layout: TyAndLayout<'tcx>
) -> Self[src]
bx: &mut Bx,
layout: TyAndLayout<'tcx>
) -> Self
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]
self,
bx: &mut Bx,
ix: usize
) -> Self
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]
self,
bx: &mut Bx,
cast_to: Ty<'tcx>
) -> V
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]
&self,
bx: &mut Bx,
variant_index: VariantIdx
)
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]
&self,
bx: &mut Bx,
llindex: V
) -> Self
pub fn project_downcast<Bx: BuilderMethods<'a, 'tcx, Value = V>>(
&self,
bx: &mut Bx,
variant_index: VariantIdx
) -> Self[src]
&self,
bx: &mut Bx,
variant_index: VariantIdx
) -> Self
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,
V: Unpin,
impl<'tcx, V> !UnwindSafe for PlaceRef<'tcx, V>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,