Thread (1 message) 1 message, 1 author, 2025-02-10

Re: [PATCH v5 4/5] rust: str: add radix prefixed integer parsing functions

From: Andreas Hindborg <a.hindborg@kernel.org>
Date: 2025-02-10 13:36:47
Also in: linux-kbuild, lkml, rust-for-linux

"Andreas Hindborg" [off-list ref] writes:
Add the trait `ParseInt` for parsing string representations of integers
where the string representations are optionally prefixed by a radix
specifier. Implement the trait for the primitive integer types.

Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
---
There is a bug in `ParseInt::from_str` that prevents parsing the string
"0" to zero. Will fix for next version.


Best regards,
Andreas Hindborg

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help