This is supported on crate feature
std only.Expand description
Enum holding error information. Variants are defined for Stream::Token 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)
Tuple Fields
0: StringStatic(&'static str)
Tuple Fields
0: &'static strImplementations
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl<T, R> RefUnwindSafe for Info<T, R> where
R: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, R> UnwindSafe for Info<T, R> where
R: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more