Enum pear::Expected [−][src]
pub enum Expected<I: Input> { Token(Option<I::Token>, Option<I::Token>), Slice(Option<I::InSlice>, Option<I::Slice>), Custom(Cow<'static, str>), EOF, }
Variants
Token(Option<I::Token>, Option<I::Token>)Slice(Option<I::InSlice>, Option<I::Slice>)Custom(Cow<'static, str>)EOF
Trait Implementations
impl<I: Debug + Input> Debug for Expected<I> where
I::Token: Debug,
I::InSlice: Debug,
I::Slice: Debug, [src]
impl<I: Debug + Input> Debug for Expected<I> where
I::Token: Debug,
I::InSlice: Debug,
I::Slice: Debug, fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<I: Clone + Input> Clone for Expected<I> where
I::Token: Clone,
I::InSlice: Clone,
I::Slice: Clone, [src]
impl<I: Clone + Input> Clone for Expected<I> where
I::Token: Clone,
I::InSlice: Clone,
I::Slice: Clone, fn clone(&self) -> Expected<I>[src]
fn clone(&self) -> Expected<I>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<I: PartialEq + Input> PartialEq for Expected<I> where
I::Token: PartialEq,
I::InSlice: PartialEq,
I::Slice: PartialEq, [src]
impl<I: PartialEq + Input> PartialEq for Expected<I> where
I::Token: PartialEq,
I::InSlice: PartialEq,
I::Slice: PartialEq, fn eq(&self, other: &Expected<I>) -> bool[src]
fn eq(&self, other: &Expected<I>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Expected<I>) -> bool[src]
fn ne(&self, other: &Expected<I>) -> boolThis method tests for !=.
impl<I: Input> Display for Expected<I>[src]
impl<I: Input> Display for Expected<I>