Struct rustc_lint::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 (
rustc_private
)Fields
id: u32
Unstable (
rustc_private
)span: Span
Unstable (
rustc_private
)cat: Categorization<'tcx>
Unstable (
rustc_private
)mutbl: MutabilityCategory
Unstable (
rustc_private
)ty: &'tcx TyS<'tcx>
Unstable (
rustc_private
)note: Note
Unstable (
rustc_private
)Methods
impl<'tcx> cmt_<'tcx>
fn guarantor(&self) -> Rc<cmt_<'tcx>>
Unstable (
rustc_private
)Returns self
after stripping away any 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) -> Aliasability
Unstable (
rustc_private
)Returns FreelyAliasable(_)
if this lvalue represents a freely aliasable pointer type.
fn upvar(&self) -> Option<Rc<cmt_<'tcx>>>
fn descriptive_string(&self, tcx: TyCtxt) -> String
Trait Implementations
impl<'tcx> Debug for cmt_<'tcx>
Derived Implementations
impl<'tcx> PartialEq<cmt_<'tcx>> for cmt_<'tcx>
fn eq(&self, __arg_0: &cmt_<'tcx>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &cmt_<'tcx>) -> bool
This method tests for !=
.
impl<'tcx> Clone for cmt_<'tcx>
fn clone(&self) -> cmt_<'tcx>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more