MCPcopy Create free account
hub / github.com/Rust-for-Linux/klint / Query

Interface Query

src/ctxt.rs:21–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19use crate::utils::anymap::AnyMap;
20
21pub(crate) trait Query: 'static {
22 const NAME: &'static str;
23
24 type Key<'tcx>: DynSend + DynSync;
25 type Value<'tcx>: DynSend + DynSync;
26}
27
28pub(crate) trait QueryValueDecodable: Query {
29 fn encode_value<'tcx>(value: &Self::Value<'tcx>, cx: &mut crate::serde::EncodeContext<'tcx>);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected