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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

§

type Value = &'a str

source§

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

§

type Value = Cow<'a, str>

source§

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

Implementors§