pub struct Int<IType: Default + FromStr>(/* private fields */);Expand description
Int parses an integer resulting in IType. It is recommended to use the specializations such
as Int64, Uint32, etc.
This is an optimized parser, not using combinators.
Implementations§
Trait Implementations§
Source§impl<IType: Default + FromStr<Err = ParseIntError> + TryFrom<i8>> Parser for Int<IType>
impl<IType: Default + FromStr<Err = ParseIntError> + TryFrom<i8>> Parser for Int<IType>
type Result = IType
Source§fn parse(
&mut self,
st: &mut ParseState<impl Iterator<Item = char>>,
) -> ParseResult<Self::Result>
fn parse( &mut self, st: &mut ParseState<impl Iterator<Item = char>>, ) -> ParseResult<Self::Result>
parse consumes input from
st and returns a result or an error. Read moreAuto Trait Implementations§
impl<IType> Freeze for Int<IType>where
IType: Freeze,
impl<IType> RefUnwindSafe for Int<IType>where
IType: RefUnwindSafe,
impl<IType> Send for Int<IType>where
IType: Send,
impl<IType> Sync for Int<IType>where
IType: Sync,
impl<IType> Unpin for Int<IType>where
IType: Unpin,
impl<IType> UnwindSafe for Int<IType>where
IType: 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