graphql_parser::query

Trait Text

Source
pub trait Text<'a>: 'a {
    type Value: 'a + From<&'a str> + AsRef<str> + Borrow<str> + PartialEq + Eq + PartialOrd + Ord + Debug + Clone;
}
Expand description

Text abstracts over types that hold a string value. It is used to make the AST generic over the string type.

Required Associated Types§

Source

type Value: 'a + From<&'a str> + AsRef<str> + Borrow<str> + PartialEq + Eq + PartialOrd + Ord + Debug + Clone

Implementations on Foreign Types§

Source§

impl<'a> Text<'a> for &'a str

Source§

type Value = &'a str

Source§

impl<'a> Text<'a> for Cow<'a, str>

Source§

type Value = Cow<'a, str>

Source§

impl<'a> Text<'a> for String

Implementors§