Enum combine::stream::easy::Info [−][src]
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
Owned(String)
Borrowed(&'static str)
Implementations
impl<T, R> Info<T, R>
[src]
pub fn map_token<F, U>(self, f: F) -> Info<U, R> where
F: FnOnce(T) -> U,
[src]
F: FnOnce(T) -> U,
pub fn map_range<F, S>(self, f: F) -> Info<T, S> where
F: FnOnce(R) -> S,
[src]
F: FnOnce(R) -> S,
Trait Implementations
impl<T: Clone, R: Clone> Clone for Info<T, R>
[src]
impl<T: Debug, R: Debug> Debug for Info<T, R>
[src]
impl<T: Display, R: Display> Display for Info<T, R>
[src]
impl<T, R> From<&'static str> for Info<T, R>
[src]
impl<T, R> From<Info<T, R>> for Info<T, R>
[src]
fn from(info: PrimitiveInfo<T, R>) -> Self
[src]
impl<T, R> From<String> for Info<T, R>
[src]
impl<R> From<char> for Info<char, R>
[src]
impl<R> From<u8> for Info<u8, R>
[src]
impl<T: PartialEq, R: PartialEq> PartialEq<Info<T, R>> for Info<T, R>
[src]
Auto Trait Implementations
impl<T, R> RefUnwindSafe for Info<T, R> where
R: RefUnwindSafe,
T: RefUnwindSafe,
R: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, R> Send for Info<T, R> where
R: Send,
T: Send,
R: Send,
T: Send,
impl<T, R> Sync for Info<T, R> where
R: Sync,
T: Sync,
R: Sync,
T: Sync,
impl<T, R> Unpin for Info<T, R> where
R: Unpin,
T: Unpin,
R: Unpin,
T: Unpin,
impl<T, R> UnwindSafe for Info<T, R> where
R: UnwindSafe,
T: UnwindSafe,
R: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow(&self) -> &TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
[src]
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
[src]
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,