pub enum Data<'a> {
Atom(&'a str),
Command(&'a str),
}Expand description
Distinguishes atoms from commands
Variants§
Atom(&'a str)
An atom is a single, non-whitespace non-(), connected string of characters
Command(&'a str)
A command represents the contents (including whitespace) inside (), excluding the outer parentheses. It may contain inner ()-characters.
Implementations§
Trait Implementations§
impl<'a> Copy for Data<'a>
impl<'a> StructuralPartialEq for Data<'a>
Auto Trait Implementations§
impl<'a> Freeze for Data<'a>
impl<'a> RefUnwindSafe for Data<'a>
impl<'a> Send for Data<'a>
impl<'a> Sync for Data<'a>
impl<'a> Unpin for Data<'a>
impl<'a> UnwindSafe for Data<'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