Trait libp2p::multihash::typenum::uint::Unsigned [−][src]
The marker trait for compile time unsigned integers.
This trait should not be implemented for anything outside this crate.
Example
use typenum::{U3, Unsigned}; assert_eq!(U3::to_u32(), 3); assert_eq!(U3::I32, 3);
Associated Constants
pub const U8: u8[src]
pub const U16: u16[src]
pub const U32: u32[src]
pub const U64: u64[src]
pub const USIZE: usize[src]
pub const I8: i8[src]
pub const I16: i16[src]
pub const I32: i32[src]
pub const I64: i64[src]
pub const ISIZE: isize[src]
Required methods
pub fn to_u8() -> u8[src]
pub fn to_u16() -> u16[src]
pub fn to_u32() -> u32[src]
pub fn to_u64() -> u64[src]
pub fn to_usize() -> usize[src]
pub fn to_i8() -> i8[src]
pub fn to_i16() -> i16[src]
pub fn to_i32() -> i32[src]
pub fn to_i64() -> i64[src]
pub fn to_isize() -> isize[src]
Implementors
impl Unsigned for UTerm[src]
pub const U8: u8[src]
pub const U16: u16[src]
pub const U32: u32[src]
pub const U64: u64[src]
pub const USIZE: usize[src]
pub const I8: i8[src]
pub const I16: i16[src]
pub const I32: i32[src]
pub const I64: i64[src]
pub const ISIZE: isize[src]
pub fn to_u8() -> u8[src]
pub fn to_u16() -> u16[src]
pub fn to_u32() -> u32[src]
pub fn to_u64() -> u64[src]
pub fn to_usize() -> usize[src]
pub fn to_i8() -> i8[src]
pub fn to_i16() -> i16[src]
pub fn to_i32() -> i32[src]
pub fn to_i64() -> i64[src]
pub fn to_isize() -> isize[src]
impl<U, B> Unsigned for UInt<U, B> where
B: Bit,
U: Unsigned, [src]
B: Bit,
U: Unsigned,