Enum combine::primitives::Info
[−]
[src]
Enum holding error information. Variants are defined for Stream::Item
and Stream::Range
as
well as string variants holding simple descriptions.
As there is implementations of From
for T: Positioner
, 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
F: FnOnce(T) -> U,
[src]
pub fn map_token<F, U>(self, f: F) -> Info<U, R> where
F: FnOnce(T) -> U,
pub fn map_range<F, S>(self, f: F) -> Info<T, S> where
F: FnOnce(R) -> S,
[src]
pub fn map_range<F, S>(self, f: F) -> Info<T, S> where
F: FnOnce(R) -> S,
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(&self) -> Info<T, R>
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<T: Debug, R: Debug> Debug for Info<T, R>
[src]
impl<T: Debug, R: Debug> Debug for Info<T, R>
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: PartialEq, R: PartialEq> PartialEq for Info<T, R>
[src]
impl<T: PartialEq, R: PartialEq> PartialEq for Info<T, R>
fn eq(&self, other: &Info<T, R>) -> bool
[src]
fn eq(&self, other: &Info<T, R>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
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>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
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>