pub enum Info<T, R, F = &'static str> {
Token(T),
Range(R),
Static(&'static str),
Format(F),
}
Variants§
Trait Implementations§
Source§impl<T, R, F> From<Info<T, R, F>> for Info<T, R>where
F: Display,
impl<T, R, F> From<Info<T, R, F>> for Info<T, R>where
F: Display,
Source§fn from(info: PrimitiveInfo<T, R, F>) -> Self
fn from(info: PrimitiveInfo<T, R, F>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T, R, F> Freeze for Info<T, R, F>
impl<T, R, F> RefUnwindSafe for Info<T, R, F>
impl<T, R, F> Send for Info<T, R, F>
impl<T, R, F> Sync for Info<T, R, F>
impl<T, R, F> Unpin for Info<T, R, F>
impl<T, R, F> UnwindSafe for Info<T, R, F>
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