cynic_parser/executable/
values.rs

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

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

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

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

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