Struct rustc_trans::middle::mem_categorization::cmt_
[−]
[src]
pub struct cmt_<'tcx> {
pub id: u32,
pub span: Span,
pub cat: categorization<'tcx>,
pub mutbl: MutabilityCategory,
pub ty: &'tcx TyS<'tcx>,
pub note: Note,
}Unstable
Fields
id | Unstable |
span | Unstable |
cat | Unstable |
mutbl | Unstable |
ty | Unstable |
note | Unstable |
Methods
impl<'tcx> cmt_<'tcx>
fn guarantor(&self) -> Rc<cmt_<'tcx>>
Unstable
Returns self after stripping away any owned pointer derefs or
interior content. The return value is basically the cmt which
determines how long the value in self remains live.
fn freely_aliasable(&self, ctxt: &ctxt<'tcx>) -> Aliasability
Unstable
Returns FreelyAliasable(_) if this lvalue represents a freely aliasable pointer type.
fn upvar(&self) -> Option<Rc<cmt_<'tcx>>>
Unstable
fn descriptive_string(&self, tcx: &ctxt) -> String
Unstable