cynic_parser/type_system/
extensions.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
use std::borrow::Cow;

use super::Description;

impl<'a> Description<'a> {
    pub fn to_cow(&self) -> Cow<'a, str> {
        self.literal().to_cow()
    }

    pub fn raw_str(&self) -> &'a str {
        self.literal().raw_str()
    }
}