pub enum Info<T> {
Token(T),
Owned(String),
Borrowed(&'static str),
}
Expand description
Enum holding error information
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§
Trait Implementations§
Source§impl<T: Positioner> From<T> for Info<T>
impl<T: Positioner> From<T> for Info<T>
Auto Trait Implementations§
impl<T> Freeze for Info<T>where
T: Freeze,
impl<T> RefUnwindSafe for Info<T>where
T: RefUnwindSafe,
impl<T> Send for Info<T>where
T: Send,
impl<T> Sync for Info<T>where
T: Sync,
impl<T> Unpin for Info<T>where
T: Unpin,
impl<T> UnwindSafe for Info<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more