Trait fixed::frac::Unsigned [−][src]
pub trait Unsigned {
const U8: u8;
const U16: u16;
const U32: u32;
const U64: u64;
const USIZE: usize;
const I8: i8;
const I16: i16;
const I32: i32;
const I64: i64;
const ISIZE: isize;
fn to_u8() -> u8;
fn to_u16() -> u16;
fn to_u32() -> u32;
fn to_u64() -> u64;
fn to_usize() -> usize;
fn to_i8() -> i8;
fn to_i16() -> i16;
fn to_i32() -> i32;
fn to_i64() -> i64;
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::{U3, Unsigned}; assert_eq!(U3::to_u32(), 3); assert_eq!(U3::I32, 3);
Associated Constants
const U8: u8
const U16: u16
const U32: u32
const U64: u64
const USIZE: usize
const I8: i8
const I16: i16
const I32: i32
const I64: i64
const ISIZE: isize
Required Methods
fn to_u8() -> u8
fn to_u16() -> u16
fn to_u32() -> u32
fn to_u64() -> u64
fn to_usize() -> usize
fn to_i8() -> i8
fn to_i16() -> i16
fn to_i32() -> i32
fn to_i64() -> i64
fn to_isize() -> isize
Implementations on Foreign Types
impl<U, B> Unsigned for UInt<U, B> where
B: Bit,
U: Unsigned, [src]
impl<U, B> Unsigned for UInt<U, B> where
B: Bit,
U: Unsigned, const U8: u8
const U16: u16
const U32: u32
const U64: u64
const USIZE: usize
const I8: i8
const I16: i16
const I32: i32
const I64: i64
const ISIZE: isize
fn to_u8() -> u8[src]
fn to_u8() -> u8fn to_u16() -> u16[src]
fn to_u16() -> u16fn to_u32() -> u32[src]
fn to_u32() -> u32fn to_u64() -> u64[src]
fn to_u64() -> u64fn to_usize() -> usize[src]
fn to_usize() -> usizefn to_i8() -> i8[src]
fn to_i8() -> i8fn to_i16() -> i16[src]
fn to_i16() -> i16fn to_i32() -> i32[src]
fn to_i32() -> i32fn to_i64() -> i64[src]
fn to_i64() -> i64fn to_isize() -> isize[src]
fn to_isize() -> isizeimpl Unsigned for UTerm[src]
impl Unsigned for UTermconst U8: u8
const U16: u16
const U32: u32
const U64: u64
const USIZE: usize
const I8: i8
const I16: i16
const I32: i32
const I64: i64
const ISIZE: isize
fn to_u8() -> u8[src]
fn to_u8() -> u8fn to_u16() -> u16[src]
fn to_u16() -> u16fn to_u32() -> u32[src]
fn to_u32() -> u32fn to_u64() -> u64[src]
fn to_u64() -> u64fn to_usize() -> usize[src]
fn to_usize() -> usizefn to_i8() -> i8[src]
fn to_i8() -> i8fn to_i16() -> i16[src]
fn to_i16() -> i16fn to_i32() -> i32[src]
fn to_i32() -> i32fn to_i64() -> i64[src]
fn to_i64() -> i64fn to_isize() -> isize[src]
fn to_isize() -> isize