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§
type Value: 'a + From<&'a str> + AsRef<str> + Borrow<str> + PartialEq + Eq + PartialOrd + Ord + Debug + Clone
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".