sel4_bitfield_ops

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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,