pub enum SloshChar<'a> {
Char(char),
String(Cow<'a, str>),
}Expand description
Type to hold Slosh’s notion of a char.
In slosh a character can either be an actual char, e.g. a Value::CodePoint
or a Value::CharCluster/Value::CharClusterLong in which case it will
be stored in an &str.
Variants§
Trait Implementations§
impl<'a> Eq for SloshChar<'a>
impl<'a> StructuralPartialEq for SloshChar<'a>
Auto Trait Implementations§
impl<'a> Freeze for SloshChar<'a>
impl<'a> RefUnwindSafe for SloshChar<'a>
impl<'a> Send for SloshChar<'a>
impl<'a> Sync for SloshChar<'a>
impl<'a> Unpin for SloshChar<'a>
impl<'a> UnwindSafe for SloshChar<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more