Function rustc::ty::codec::encode_with_shorthand
[−]
[src]
pub fn encode_with_shorthand<E, T, M>(
encoder: &mut E,
value: &T,
cache: M
) -> Result<(), E::Error> where
E: TyEncoder,
M: for<'b> Fn(&'b mut E) -> &'b mut FxHashMap<T, usize>,
T: EncodableWithShorthand,
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Encode the given value or a previously cached shorthand.