Enum rustc::middle::ty::AutoRefExperimental [-]  [+] [src]

pub enum AutoRef {
    AutoPtr(Region, Mutability, Option<Box<AutoRef>>),
    AutoUnsize(UnsizeKind),
    AutoUnsizeUniq(UnsizeKind),
    AutoUnsafe(Mutability, Option<Box<AutoRef>>),
}

Variants

AutoPtr

Convert from T to &T The third field allows us to wrap other AutoRef adjustments.

AutoUnsize

Convert [T, ..n] to T

AutoUnsizeUniq

Convert Box<[T, ..n]> to Box<[T]> or something similar in a Box. With DST and Box a library type, this should be replaced by UnsizeStruct.

AutoUnsafe

Convert from T to *T Value to thin pointer The second field allows us to wrap other AutoRef adjustments.

Trait Implementations

impl TypeFoldable for AutoRef

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

Derived Implementations

impl Show for AutoRef

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

impl PartialEq for AutoRef

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

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

impl Clone for AutoRef

fn clone(&self) -> AutoRef

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