Enum rustc_lint::middle::ty::AutoRefUnstable [-] [+] [src]

pub enum AutoRef<'tcx> {
    AutoPtr(&'tcx Region, Mutability),
    AutoUnsafe(Mutability),
}

Variants

AutoPtr

Convert from T to &T.

AutoUnsafe

Convert from T to *T. Value to thin pointer.

Trait Implementations

impl<'tcx> Repr<'tcx> for AutoRef<'tcx>

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

impl<'tcx> TypeFoldable<'tcx> for AutoRef<'tcx>

fn fold_with<F>(&self, folder: &mut F) -> AutoRef<'tcx> where F: TypeFolder<'tcx>

Derived Implementations

impl<'tcx> Debug for AutoRef<'tcx>

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

impl<'tcx> PartialEq<AutoRef<'tcx>> for AutoRef<'tcx>

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

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

impl<'tcx> Clone for AutoRef<'tcx>

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

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

impl<'tcx> Copy for AutoRef<'tcx>