pub enum Expected<T, I, S> {
Token(Option<T>, Option<T>),
Slice(Option<I>, Option<S>),
Custom(Cow<'static, str>),
EOF(Option<T>),
}
Variants
Token(Option<T>, Option<T>)
Slice(Option<I>, Option<S>)
Custom(Cow<'static, str>)
EOF(Option<T>)
Implementations
Trait Implementations
sourceimpl<T: Display + Debug, I: Display + Debug, S: Display + Debug> Display for Expected<T, I, S>
impl<T: Display + Debug, I: Display + Debug, S: Display + Debug> Display for Expected<T, I, S>
sourceimpl<T: PartialEq, I: PartialEq, S: PartialEq> PartialEq<Expected<T, I, S>> for Expected<T, I, S>
impl<T: PartialEq, I: PartialEq, S: PartialEq> PartialEq<Expected<T, I, S>> for Expected<T, I, S>
impl<T, I, S> StructuralPartialEq for Expected<T, I, S>
Auto Trait Implementations
impl<T, I, S> RefUnwindSafe for Expected<T, I, S> where
I: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, I, S> Send for Expected<T, I, S> where
I: Send,
S: Send,
T: Send,
impl<T, I, S> Sync for Expected<T, I, S> where
I: Sync,
S: Sync,
T: Sync,
impl<T, I, S> Unpin for Expected<T, I, S> where
I: Unpin,
S: Unpin,
T: Unpin,
impl<T, I, S> UnwindSafe for Expected<T, I, S> where
I: UnwindSafe,
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more