pub unsafe trait TypedBitElem {
    type Base;

    const PROTO: BitProto;

    // Required methods
    fn bits_to_val(bits: usize) -> Self::Base;
    fn val_to_bits(val: Self::Base) -> usize;
}

Required Associated Types§

Required Associated Constants§

Required Methods§

source

fn bits_to_val(bits: usize) -> Self::Base

source

fn val_to_bits(val: Self::Base) -> usize

Implementations on Foreign Types§

source§

impl TypedBitElem for bool

§

type Base = bool

source§

const PROTO: BitProto = _

source§

fn bits_to_val(bits: usize) -> Self::Base

source§

fn val_to_bits(val: Self::Base) -> usize

Implementors§

source§

impl TypedBitElem for i8_as_i1

§

type Base = i8

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for i8_as_i2

§

type Base = i8

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for i8_as_i3

§

type Base = i8

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for i8_as_i4

§

type Base = i8

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for i8_as_i5

§

type Base = i8

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for i8_as_i6

§

type Base = i8

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for i8_as_i7

§

type Base = i8

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for i16_as_i9

§

type Base = i16

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for i16_as_i10

§

type Base = i16

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for i16_as_i11

§

type Base = i16

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for i16_as_i12

§

type Base = i16

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for i16_as_i13

§

type Base = i16

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for i16_as_i14

§

type Base = i16

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for i16_as_i15

§

type Base = i16

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for u8_as_u1

§

type Base = u8

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for u8_as_u2

§

type Base = u8

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for u8_as_u3

§

type Base = u8

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for u8_as_u4

§

type Base = u8

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for u8_as_u5

§

type Base = u8

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for u8_as_u6

§

type Base = u8

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for u8_as_u7

§

type Base = u8

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for u16_as_u9

§

type Base = u16

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for u16_as_u10

§

type Base = u16

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for u16_as_u11

§

type Base = u16

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for u16_as_u12

§

type Base = u16

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for u16_as_u13

§

type Base = u16

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for u16_as_u14

§

type Base = u16

source§

const PROTO: BitProto = _

source§

impl TypedBitElem for u16_as_u15

§

type Base = u16

source§

const PROTO: BitProto = _