Trait crypto::ciphers::traits::consts::Unsigned [−]
pub trait Unsigned: Copy + Default { pub const U8: u8; pub const U16: u16; pub const U32: u32; pub const U64: u64; pub const USIZE: usize; pub const I8: i8; pub const I16: i16; pub const I32: i32; pub const I64: i64; pub const ISIZE: isize; pub fn to_u8() -> u8; pub fn to_u16() -> u16; pub fn to_u32() -> u32; pub fn to_u64() -> u64; pub fn to_usize() -> usize; 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 unsigned integers.
This trait should not be implemented for anything outside this crate.
Example
use typenum::{Unsigned, U3}; assert_eq!(U3::to_u32(), 3); assert_eq!(U3::I32, 3);
Associated Constants
pub const U8: u8
pub const U16: u16
pub const U32: u32
pub const U64: u64
pub const USIZE: usize
pub const I8: i8
pub const I16: i16
pub const I32: i32
pub const I64: i64
pub const ISIZE: isize
Required methods
pub fn to_u8() -> u8
pub fn to_u16() -> u16
pub fn to_u32() -> u32
pub fn to_u64() -> u64
pub fn to_usize() -> usize
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
Implementors
impl Unsigned for UTerm
impl Unsigned for UTerm
pub const U8: u8
pub const U16: u16
pub const U32: u32
pub const U64: u64
pub const USIZE: usize
pub const I8: i8
pub const I16: i16
pub const I32: i32
pub const I64: i64
pub const ISIZE: isize
pub fn to_u8() -> u8
pub fn to_u16() -> u16
pub fn to_u32() -> u32
pub fn to_u64() -> u64
pub fn to_usize() -> usize
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
impl<U, B> Unsigned for UInt<U, B> where
B: Bit,
U: Unsigned,
impl<U, B> Unsigned for UInt<U, B> where
B: Bit,
U: Unsigned,