Trait sel4_bitfield_ops::PrimInt

source ·
pub trait PrimInt: PrimIntSealed {
    type Unsigned: UnsignedPrimInt;

    // Required methods
    fn cast_from_unsigned(val: Self::Unsigned) -> Self;
    fn cast_to_unsigned(val: Self) -> Self::Unsigned;
}

Required Associated Types§

Required Methods§

source

fn cast_from_unsigned(val: Self::Unsigned) -> Self

source

fn cast_to_unsigned(val: Self) -> Self::Unsigned

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl PrimInt for i8

source§

type Unsigned = u8

source§

fn cast_from_unsigned(val: Self::Unsigned) -> Self

source§

fn cast_to_unsigned(val: Self) -> Self::Unsigned

source§

impl PrimInt for i16

source§

type Unsigned = u16

source§

fn cast_from_unsigned(val: Self::Unsigned) -> Self

source§

fn cast_to_unsigned(val: Self) -> Self::Unsigned

source§

impl PrimInt for i32

source§

type Unsigned = u32

source§

fn cast_from_unsigned(val: Self::Unsigned) -> Self

source§

fn cast_to_unsigned(val: Self) -> Self::Unsigned

source§

impl PrimInt for i64

source§

type Unsigned = u64

source§

fn cast_from_unsigned(val: Self::Unsigned) -> Self

source§

fn cast_to_unsigned(val: Self) -> Self::Unsigned

source§

impl PrimInt for i128

source§

type Unsigned = u128

source§

fn cast_from_unsigned(val: Self::Unsigned) -> Self

source§

fn cast_to_unsigned(val: Self) -> Self::Unsigned

source§

impl PrimInt for isize

source§

type Unsigned = usize

source§

fn cast_from_unsigned(val: Self::Unsigned) -> Self

source§

fn cast_to_unsigned(val: Self) -> Self::Unsigned

Implementors§

source§

impl<T> PrimInt for T
where T: UnsignedPrimInt + PrimIntSealed,