pub struct Number<T> {
pub value: T,
pub token: String,
}Expand description
A number and the exact token the corpus wrote for it.
Fields§
§value: TThe parsed value.
token: StringThe token as written.
Trait Implementations§
impl<T> StructuralPartialEq for Number<T>
Auto Trait Implementations§
impl<T> Freeze for Number<T>where
T: Freeze,
impl<T> RefUnwindSafe for Number<T>where
T: RefUnwindSafe,
impl<T> Send for Number<T>where
T: Send,
impl<T> Sync for Number<T>where
T: Sync,
impl<T> Unpin for Number<T>where
T: Unpin,
impl<T> UnsafeUnpin for Number<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Number<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