Trait rustc_middle::ty::codec::TyDecoder
source · pub trait TyDecoder: Decoder {
type I: Interner;
const CLEAR_CROSS_CRATE: bool;
fn interner(&self) -> Self::I;
fn peek_byte(&self) -> u8;
fn position(&self) -> usize;
fn cached_ty_for_shorthand<F>(
&mut self,
shorthand: usize,
or_insert_with: F
) -> <Self::I as Interner>::Ty
where
F: FnOnce(&mut Self) -> <Self::I as Interner>::Ty;
fn with_position<F, R>(&mut self, pos: usize, f: F) -> R
where
F: FnOnce(&mut Self) -> R;
fn decode_alloc_id(&mut self) -> <Self::I as Interner>::AllocId;
fn positioned_at_shorthand(&self) -> bool { ... }
}
Required Associated Types
Required Associated Constants
source
const CLEAR_CROSS_CRATE: bool
Required Methods
sourcefn cached_ty_for_shorthand<F>(
fn cached_ty_for_shorthand<F>(
&mut self,
shorthand: usize,
or_insert_with: F
) -> <Self::I as Interner>::Tywhere
F: FnOnce(&mut Self) -> <Self::I as Interner>::Ty,
sourcefn with_position<F, R>(&mut self, pos: usize, f: F) -> Rwhere
fn with_position<F, R>(&mut self, pos: usize, f: F) -> Rwhere
F: FnOnce(&mut Self) -> R,
source
fn decode_alloc_id(&mut self) -> <Self::I as Interner>::AllocId
Provided Methods
source