Enum rustc::infer::InferTables [] [src]

pub enum InferTables<'a, 'gcx: 'a + 'tcx, 'tcx: 'a> {
    Global(&'a RefCell<Tables<'gcx>>),
    Local(&'a RefCell<Tables<'tcx>>),
}
Unstable (rustc_private)

A version of &ty::Tables which can be global or local. Only the local version supports borrow_mut.

Variants

Global(&'a RefCell<Tables<'gcx>>)
Unstable (rustc_private)
Local(&'a RefCell<Tables<'tcx>>)
Unstable (rustc_private)

Methods

impl<'a, 'gcx, 'tcx> InferTables<'a, 'gcx, 'tcx>
[src]

fn borrow(self) -> Ref<'a, Tables<'tcx>>

fn borrow_mut(self) -> RefMut<'a, Tables<'tcx>>

Trait Implementations

Derived Implementations

impl<'a, 'gcx: 'a + 'tcx, 'tcx: 'a> Clone for InferTables<'a, 'gcx, 'tcx>
[src]

fn clone(&self) -> InferTables<'a, 'gcx, '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

impl<'a, 'gcx: 'a + 'tcx, 'tcx: 'a> Copy for InferTables<'a, 'gcx, 'tcx>
[src]