Trait tet_libp2p::multihash::typenum::marker_traits::Integer[]

pub trait Integer {
    pub const I8: i8;
    pub const I16: i16;
    pub const I32: i32;
    pub const I64: i64;
    pub const ISIZE: isize;

    pub fn to_i8() -> i8;
pub fn to_i16() -> i16;
pub fn to_i32() -> i32;
pub fn to_i64() -> i64;
pub fn to_isize() -> isize; }

The marker trait for compile time signed integers.

This trait should not be implemented for anything outside this crate.

Example

use typenum::{Integer, P3};

assert_eq!(P3::to_i32(), 3);
assert_eq!(P3::I32, 3);

Associated Constants

pub const I8: i8

pub const I16: i16

pub const I32: i32

pub const I64: i64

pub const ISIZE: isize

Loading content...

Required methods

pub fn to_i8() -> i8

pub fn to_i16() -> i16

pub fn to_i32() -> i32

pub fn to_i64() -> i64

pub fn to_isize() -> isize

Loading content...

Implementors

impl Integer for Z0

impl<U> Integer for NInt<U> where
    U: NonZero + Unsigned

impl<U> Integer for PInt<U> where
    U: NonZero + Unsigned

Loading content...