Trait Sealed

Source
pub trait Sealed: Copy {
    type Unsigned: Integer;

    // Required methods
    fn as_unsigned(self) -> (bool, Self::Unsigned);
    fn eq_zero(self) -> bool;
    fn div_mod_10(&mut self) -> u8;
}

Required Associated Types§

Required Methods§

Source

fn as_unsigned(self) -> (bool, Self::Unsigned)

Source

fn eq_zero(self) -> bool

Source

fn div_mod_10(&mut self) -> u8

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 Sealed for i8

Source§

type Unsigned = u8

Source§

fn as_unsigned(self) -> (bool, u8)

Source§

fn eq_zero(self) -> bool

Source§

fn div_mod_10(&mut self) -> u8

Source§

impl Sealed for i16

Source§

type Unsigned = u16

Source§

fn as_unsigned(self) -> (bool, u16)

Source§

fn eq_zero(self) -> bool

Source§

fn div_mod_10(&mut self) -> u8

Source§

impl Sealed for i32

Source§

type Unsigned = u32

Source§

fn as_unsigned(self) -> (bool, u32)

Source§

fn eq_zero(self) -> bool

Source§

fn div_mod_10(&mut self) -> u8

Source§

impl Sealed for i64

Source§

type Unsigned = u64

Source§

fn as_unsigned(self) -> (bool, u64)

Source§

fn eq_zero(self) -> bool

Source§

fn div_mod_10(&mut self) -> u8

Source§

impl Sealed for isize

Source§

impl Sealed for u8

Source§

type Unsigned = u8

Source§

fn as_unsigned(self) -> (bool, u8)

Source§

fn eq_zero(self) -> bool

Source§

fn div_mod_10(&mut self) -> u8

Source§

impl Sealed for u16

Source§

type Unsigned = u16

Source§

fn as_unsigned(self) -> (bool, u16)

Source§

fn eq_zero(self) -> bool

Source§

fn div_mod_10(&mut self) -> u8

Source§

impl Sealed for u32

Source§

type Unsigned = u32

Source§

fn as_unsigned(self) -> (bool, u32)

Source§

fn eq_zero(self) -> bool

Source§

fn div_mod_10(&mut self) -> u8

Source§

impl Sealed for u64

Source§

type Unsigned = u64

Source§

fn as_unsigned(self) -> (bool, u64)

Source§

fn eq_zero(self) -> bool

Source§

fn div_mod_10(&mut self) -> u8

Source§

impl Sealed for usize

Implementors§