cynic_parser/type_system/
values.rs

1use super::TypeSystemId;
2
3impl TypeSystemId for crate::values::ids::ValueId {
4    type Reader<'a> = crate::values::Value<'a>;
5
6    fn read(self, document: &super::TypeSystemDocument) -> Self::Reader<'_> {
7        document.values.read(self)
8    }
9}
10
11impl TypeSystemId for crate::values::ids::ConstValueId {
12    type Reader<'a> = crate::values::ConstValue<'a>;
13
14    fn read(self, document: &super::TypeSystemDocument) -> Self::Reader<'_> {
15        document.values.read(self)
16    }
17}