Trait time::parsing::shim::Integer

source ·
pub(crate) trait Integer: Sized {
    // Required method
    fn parse_bytes(src: &[u8]) -> Option<Self>;
}
Expand description

Marker trait for all integer types, including NonZero*

Required Methods§

source

fn parse_bytes(src: &[u8]) -> Option<Self>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Integer for u8

source§

fn parse_bytes(src: &[u8]) -> Option<Self>

source§

impl Integer for u16

source§

fn parse_bytes(src: &[u8]) -> Option<Self>

source§

impl Integer for u32

source§

fn parse_bytes(src: &[u8]) -> Option<Self>

source§

impl Integer for u128

source§

fn parse_bytes(src: &[u8]) -> Option<Self>

source§

impl Integer for NonZeroU8

source§

fn parse_bytes(src: &[u8]) -> Option<Self>

source§

impl Integer for NonZeroU16

source§

fn parse_bytes(src: &[u8]) -> Option<Self>

Implementors§