Struct rustc::middle::typeck::infer::coercion::CoerceExperimental [-]  [+] [src]

pub struct Coerce<'f, 'tcx>(pub CombineFields<'f, 'tcx>);

Methods

impl<'f, 'tcx> Coerce<'f, 'tcx>

fn get_ref<'a>(&'a self) -> &'a CombineFields<'f, 'tcx>

fn tys(&self, a: t, b: t) -> CoerceResult

fn subtype(&self, a: t, b: t) -> CoerceResult

fn unpack_actual_value<T>(&self, a: t, f: |&sty| -> T) -> T

fn coerce_borrowed_pointer(&self, a: t, sty_a: &sty, b: t, mutbl_b: Mutability) -> CoerceResult

fn coerce_borrowed_fn(&self, a: t, sty_a: &sty, b: t) -> CoerceResult

fn coerce_unsafe_ptr(&self, a: t, sty_a: &sty, b: t, mutbl_b: Mutability) -> CoerceResult