[][src]Trait c2rust_bitfields::FieldType

pub trait FieldType: Sized {
    const IS_SIGNED: bool;
    const TOTAL_BIT_SIZE: usize;

    fn get_bit(&self, bit: usize) -> bool;
fn get_field(field: &[u8], bit_range: (usize, usize)) -> Self; fn set_field(&self, field: &mut [u8], bit_range: (usize, usize)) { ... } }

Associated Constants

Loading content...

Required methods

fn get_bit(&self, bit: usize) -> bool

fn get_field(field: &[u8], bit_range: (usize, usize)) -> Self

Loading content...

Provided methods

fn set_field(&self, field: &mut [u8], bit_range: (usize, usize))

Loading content...

Implementations on Foreign Types

impl FieldType for u8[src]

impl FieldType for u16[src]

impl FieldType for u32[src]

impl FieldType for u64[src]

impl FieldType for u128[src]

impl FieldType for i8[src]

impl FieldType for i16[src]

impl FieldType for i32[src]

impl FieldType for i64[src]

impl FieldType for i128[src]

impl FieldType for bool[src]

Loading content...

Implementors

Loading content...