Module rustc_middle::ty::codec[][src]

Constants

SHORTHAND_OFFSET

The shorthand encoding uses an enum’s variant index usize and is offset by this value so it never matches a real variant. This offset is also chosen so that the first byte is never < 0x80.

Traits

EncodableWithShorthand
RefDecodable

Trait for decoding to a reference.

TyDecoder
TyEncoder

Functions

decode_arena_allocable
decode_arena_allocable_slice
encode_with_shorthand

Encode the given value or a previously cached shorthand.