rustls_pki_types::server_name::parser

Trait ReadNumberHelper

source
trait ReadNumberHelper: Sized {
    const ZERO: Self;

    // Required methods
    fn checked_mul(&self, other: u32) -> Option<Self>;
    fn checked_add(&self, other: u32) -> Option<Self>;
}

Required Associated Constants§

source

const ZERO: Self

Required Methods§

source

fn checked_mul(&self, other: u32) -> Option<Self>

source

fn checked_add(&self, other: u32) -> Option<Self>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ReadNumberHelper for u8

source§

const ZERO: Self = 0u8

source§

fn checked_mul(&self, other: u32) -> Option<Self>

source§

fn checked_add(&self, other: u32) -> Option<Self>

source§

impl ReadNumberHelper for u16

source§

const ZERO: Self = 0u16

source§

fn checked_mul(&self, other: u32) -> Option<Self>

source§

fn checked_add(&self, other: u32) -> Option<Self>

source§

impl ReadNumberHelper for u32

source§

const ZERO: Self = 0u32

source§

fn checked_mul(&self, other: u32) -> Option<Self>

source§

fn checked_add(&self, other: u32) -> Option<Self>

Implementors§