cynic_parser/type_system/
values.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::TypeSystemId;

impl TypeSystemId for crate::values::ids::ValueId {
    type Reader<'a> = crate::values::Value<'a>;

    fn read(self, document: &super::TypeSystemDocument) -> Self::Reader<'_> {
        document.values.read(self)
    }
}

impl TypeSystemId for crate::values::ids::ConstValueId {
    type Reader<'a> = crate::values::ConstValue<'a>;

    fn read(self, document: &super::TypeSystemDocument) -> Self::Reader<'_> {
        document.values.read(self)
    }
}