Trait AddressWidth

Source
pub trait AddressWidth {
    // Required methods
    fn width() -> u8
       where Self: Sized;
    fn fmt_hex(&self, f: &mut Formatter<'_>) -> Result;
    fn from_parser(parser: &mut Parser<'_>) -> Result<Self, AmlParseError>
       where Self: Sized;
}

Required Methods§

Source

fn width() -> u8
where Self: Sized,

Source

fn fmt_hex(&self, f: &mut Formatter<'_>) -> Result

Source

fn from_parser(parser: &mut Parser<'_>) -> Result<Self, AmlParseError>
where Self: Sized,

Implementations on Foreign Types§

Source§

impl AddressWidth for u16

Source§

fn width() -> u8

Source§

fn fmt_hex(&self, f: &mut Formatter<'_>) -> Result

Source§

fn from_parser(parser: &mut Parser<'_>) -> Result<Self, AmlParseError>

Source§

impl AddressWidth for u32

Source§

fn width() -> u8

Source§

fn fmt_hex(&self, f: &mut Formatter<'_>) -> Result

Source§

fn from_parser(parser: &mut Parser<'_>) -> Result<Self, AmlParseError>

Source§

impl AddressWidth for u64

Source§

fn width() -> u8

Source§

fn fmt_hex(&self, f: &mut Formatter<'_>) -> Result

Source§

fn from_parser(parser: &mut Parser<'_>) -> Result<Self, AmlParseError>

Implementors§