Parsing integers from byte views.
Functions
parse_u64 | The u64 that bytes spells in decimal digits. |
parse_usize | The usize that bytes spells in decimal digits: parse_u64's number, or nothing when it is past usize::MAX, which is the target's (usize is pointer-sized). |
parse_i64 | The i64 that bytes spells in decimal digits after an optional '-'. |
Function declarations
fn parse_u64source
forall C, S where ReadBytes[C, S], Copy[S].
fn parse_u64(&cx: C, bytes: S) -> Option[u64] { ... }
The u64 that bytes spells in decimal digits.
fn parse_usizesource
forall C, S where ReadBytes[C, S], Copy[S].
fn parse_usize(&cx: C, bytes: S) -> Option[usize] { ... }
The usize that bytes spells in decimal digits: parse_u64's number, or nothing when it is past usize::MAX, which is the target's (usize is pointer-sized).
fn parse_i64source
forall C, S where ReadBytes[C, S], Copy[S].
fn parse_i64(&cx: C, bytes: S) -> Option[i64] { ... }
The i64 that bytes spells in decimal digits after an optional '-'.