pub(crate) trait Integer: Sized {
// Required method
fn parse_bytes(src: &[u8]) -> Option<Self>;
}
Available on crate feature
parsing
only.Expand description
Marker trait for all integer types, including NonZero*
Required Methods§
fn parse_bytes(src: &[u8]) -> Option<Self>
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.