[][src]Trait nibbler::traits::Nib

pub trait Nib {
    fn ival(&self) -> u8;
fn hval(&self) -> String;
fn sval(&self) -> String;
fn b0(&self) -> bool;
fn b1(&self) -> bool;
fn b2(&self) -> bool;
fn b3(&self) -> bool;
fn i0(&self) -> u8;
fn i1(&self) -> u8;
fn i2(&self) -> u8;
fn i3(&self) -> u8;
fn as_bit_str_le(&self) -> String;
fn as_bit_str_be(&self) -> String; }

Required methods

fn ival(&self) -> u8

Returns an unsigned 8-bit integer value.

fn hval(&self) -> String

Returns a hex-dec string.

fn sval(&self) -> String

Returns a binary string, MSB (left) -to- LSB (right)

fn b0(&self) -> bool

Gets the least significant bit, 2^0

fn b1(&self) -> bool

Gets the 2^1 value.

fn b2(&self) -> bool

Gets the 2^2 value.

fn b3(&self) -> bool

Gets the most sigificant bit, 2^3

fn i0(&self) -> u8

Gets the least significant bit, 2^0, as an integer (1 or 0).

fn i1(&self) -> u8

Gets the 2^1 value as an integer (1 or 0).

fn i2(&self) -> u8

Gets the 2^2 value as an integer (1 or 0).

fn i3(&self) -> u8

Gets the most significant bit, 2^3, as an integer (1 or 0).

fn as_bit_str_le(&self) -> String

Gets the bit string, Little Endian, MSBit on left, LSBit on right.

fn as_bit_str_be(&self) -> String

Gets the bit string, Big Endian, LSBit on left, MSBit on right.

Loading content...

Implementors

impl Nib for Nibble[src]

fn as_bit_str_le(&self) -> String[src]

Gets the bit string, Little Endian, MSBit on left, LSBit on right.

fn as_bit_str_be(&self) -> String[src]

Gets the bit string, Big Endian, LSBit on left, MSBit on right.

Loading content...