pub trait Integer:
FromStr<Err = ParseIntError>
+ TryFrom<i8>
+ Sized { }
Available on crate feature
alloc
only.Expand description
Not strictly necessary but serves as a lint - avoids weird behavior if someone accidentally
passes non-integer to the parse()
function.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.