Enum debris_parser::error::ExpectedItem
source · pub enum ExpectedItem {
ControlFlowOperator,
FormatString,
TokenKind(TokenKind),
Statement,
Value,
}
Variants§
Trait Implementations§
source§impl Clone for ExpectedItem
impl Clone for ExpectedItem
source§fn clone(&self) -> ExpectedItem
fn clone(&self) -> ExpectedItem
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExpectedItem
impl Debug for ExpectedItem
source§impl From<TokenKind> for ExpectedItem
impl From<TokenKind> for ExpectedItem
source§impl PartialEq for ExpectedItem
impl PartialEq for ExpectedItem
source§fn eq(&self, other: &ExpectedItem) -> bool
fn eq(&self, other: &ExpectedItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ExpectedItem
impl StructuralEq for ExpectedItem
impl StructuralPartialEq for ExpectedItem
Auto Trait Implementations§
impl RefUnwindSafe for ExpectedItem
impl Send for ExpectedItem
impl Sync for ExpectedItem
impl Unpin for ExpectedItem
impl UnwindSafe for ExpectedItem
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.