Integer

Trait Integer 

Source
pub trait Integer: Sized {
    // Required methods
    fn parse(parser: &mut Parser<'_>, sign: i8) -> Result<Self>;
    fn try_from_parsed_integer(parsed: ParsedInteger, ron: &str) -> Result<Self>;
}

Required Methods§

Source

fn parse(parser: &mut Parser<'_>, sign: i8) -> Result<Self>

Source

fn try_from_parsed_integer(parsed: ParsedInteger, ron: &str) -> Result<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.

Implementations on Foreign Types§

Source§

impl Integer for i8

Source§

fn parse(parser: &mut Parser<'_>, sign: i8) -> Result<Self>

Source§

fn try_from_parsed_integer(parsed: ParsedInteger, ron: &str) -> Result<Self>

Source§

impl Integer for i16

Source§

fn parse(parser: &mut Parser<'_>, sign: i8) -> Result<Self>

Source§

fn try_from_parsed_integer(parsed: ParsedInteger, ron: &str) -> Result<Self>

Source§

impl Integer for i32

Source§

fn parse(parser: &mut Parser<'_>, sign: i8) -> Result<Self>

Source§

fn try_from_parsed_integer(parsed: ParsedInteger, ron: &str) -> Result<Self>

Source§

impl Integer for i64

Source§

fn parse(parser: &mut Parser<'_>, sign: i8) -> Result<Self>

Source§

fn try_from_parsed_integer(parsed: ParsedInteger, ron: &str) -> Result<Self>

Source§

impl Integer for u8

Source§

fn parse(parser: &mut Parser<'_>, sign: i8) -> Result<Self>

Source§

fn try_from_parsed_integer(parsed: ParsedInteger, ron: &str) -> Result<Self>

Source§

impl Integer for u16

Source§

fn parse(parser: &mut Parser<'_>, sign: i8) -> Result<Self>

Source§

fn try_from_parsed_integer(parsed: ParsedInteger, ron: &str) -> Result<Self>

Source§

impl Integer for u32

Source§

fn parse(parser: &mut Parser<'_>, sign: i8) -> Result<Self>

Source§

fn try_from_parsed_integer(parsed: ParsedInteger, ron: &str) -> Result<Self>

Source§

impl Integer for u64

Source§

fn parse(parser: &mut Parser<'_>, sign: i8) -> Result<Self>

Source§

fn try_from_parsed_integer(parsed: ParsedInteger, ron: &str) -> Result<Self>

Implementors§