Struct rustc_lint::middle::mem_categorization::cmt_Unstable [-] [+] [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,
}

Fields

id
span
cat
mutbl
ty
note

Methods

impl<'tcx> cmt_<'tcx>

fn guarantor(&self) -> Rc<cmt_<'tcx>>

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

Returns FreelyAliasable(_) if this lvalue represents a freely aliasable pointer type.

fn upvar(&self) -> Option<Rc<cmt_<'tcx>>>

fn descriptive_string(&self, tcx: &ctxt) -> String

Trait Implementations

impl<'tcx> Repr<'tcx> for cmt_<'tcx>

fn repr(&self, tcx: &ctxt<'tcx>) -> String

Derived Implementations

impl<'tcx> Debug for cmt_<'tcx>

fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>

impl<'tcx> PartialEq<cmt_<'tcx>> for cmt_<'tcx>

fn eq(&self, __arg_0: &cmt_<'tcx>) -> bool

fn ne(&self, __arg_0: &cmt_<'tcx>) -> bool

impl<'tcx> Clone for cmt_<'tcx>

fn clone(&self) -> cmt_<'tcx>

fn clone_from(&mut self, source: &Self)