pub enum Parsed<'a> {
Run(&'static Command, &'a str),
Elsewhere(&'static Command),
Unknown(&'a str),
}Expand description
A line that starts with /, resolved against what front has.
Variants§
Run(&'static Command, &'a str)
A command this interface has, with the text after the word (trimmed, maybe empty).
Elsewhere(&'static Command)
A real command that only the other interface has.
Unknown(&'a str)
No such command, or an argument given to one that takes none. Carries the line.
Trait Implementations§
impl<'a> Eq for Parsed<'a>
impl<'a> StructuralPartialEq for Parsed<'a>
Auto Trait Implementations§
impl<'a> Forget for Parsed<'a>
impl<'a> Freeze for Parsed<'a>
impl<'a> Move for Parsed<'a>
impl<'a> RefUnwindSafe for Parsed<'a>
impl<'a> Send for Parsed<'a>
impl<'a> Sync for Parsed<'a>
impl<'a> Unpin for Parsed<'a>
impl<'a> UnsafeUnpin for Parsed<'a>
impl<'a> UnwindSafe for Parsed<'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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.