pub trait Text<'a>: 'a {
    type Value: 'a + From<&'a str> + AsRef<str> + Borrow<str> + PartialEq<Self::Value> + Eq + PartialOrd<Self::Value> + 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<Self::Value> + Eq + PartialOrd<Self::Value> + Ord + Debug + Clone

Implementations on Foreign Types§

source§

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

source§

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

§

type Value = Cow<'a, str>

source§

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

§

type Value = &'a str

Implementors§