[−][src]Enum combine::easy::Info
Enum holding error information. Variants are defined for Stream::Item
and Stream::Range
as
well as string variants holding easy descriptions.
As there is implementations of From
for String
and &'static str
the
constructor need not be used directly as calling msg.into()
should turn a message into the
correct Info
variant.
Variants
Token(T)
Range(R)
Owned(String)
Borrowed(&'static str)
Methods
impl<T, R> Info<T, R>
[src]
impl<T, R> Info<T, R>
pub fn map_token<F, U>(self, f: F) -> Info<U, R> where | [src] |
pub fn map_range<F, S>(self, f: F) -> Info<T, S> where | [src] |
Trait Implementations
impl<T: Clone, R: Clone> Clone for Info<T, R>
[src]
impl<T: Clone, R: Clone> Clone for Info<T, R>
fn clone(&self) -> Info<T, R> | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl<T, R> From<Info<T, R>> for Info<T, R>
[src]
impl<T, R> From<Info<T, R>> for Info<T, R>
fn from(info: PrimitiveInfo<T, R>) -> Self | [src] |
impl<R> From<char> for Info<char, R>
[src]
impl<R> From<char> for Info<char, R>
impl<T, R> From<String> for Info<T, R>
[src]
impl<T, R> From<String> for Info<T, R>
impl<T, R> From<&'static str> for Info<T, R>
[src]
impl<T, R> From<&'static str> for Info<T, R>
impl<R> From<u8> for Info<u8, R>
[src]
impl<R> From<u8> for Info<u8, R>
impl<T: PartialEq, R: PartialEq> PartialEq<Info<T, R>> for Info<T, R>
[src]
impl<T: PartialEq, R: PartialEq> PartialEq<Info<T, R>> for Info<T, R>
fn eq(&self, other: &Info<T, R>) -> bool | [src] |
| 1.0.0 [src] |
This method tests for !=
.
impl<T: Display, R: Display> Display for Info<T, R>
[src]
impl<T: Display, R: Display> Display for Info<T, R>
impl<T: Debug, R: Debug> Debug for Info<T, R>
[src]
impl<T: Debug, R: Debug> Debug for Info<T, R>
Auto Trait Implementations
impl<T, R> Send for Info<T, R> where
R: Send,
T: Send,
impl<T, R> Send for Info<T, R> where
R: Send,
T: Send,
impl<T, R> Sync for Info<T, R> where
R: Sync,
T: Sync,
impl<T, R> Sync for Info<T, R> where
R: Sync,
T: Sync,
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
impl<T> ToString for T where
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
ⓘImportant traits for &'a mut W
ⓘImportant traits for &'a mut W
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |