pub trait SerialWritableHexadecimal: uDisplayHex {
    type HexadecimalString: StringType;

    // Provided method
    fn write_to_serial_as_hex(&self) { ... }
}
Expand description

Trait to allow implementing specific Serial::write_hex behavior for types.

Required Associated Types§

Provided Methods§

source

fn write_to_serial_as_hex(&self)

Format the given number as hexadecimal and write it to the Serial connection.

Implementations on Foreign Types§

source§

impl SerialWritableHexadecimal for u8

§

type HexadecimalString = String<{ $size }>

source§

impl SerialWritableHexadecimal for u16

§

type HexadecimalString = String<{ $size }>

source§

impl SerialWritableHexadecimal for u32

§

type HexadecimalString = String<{ $size }>

source§

impl SerialWritableHexadecimal for u64

§

type HexadecimalString = String<{ $size }>

source§

impl SerialWritableHexadecimal for u128

§

type HexadecimalString = String<{ $size }>

source§

impl SerialWritableHexadecimal for usize

§

type HexadecimalString = String<{ $size }>

source§

impl SerialWritableHexadecimal for i8

§

type HexadecimalString = String<{ $size }>

source§

impl SerialWritableHexadecimal for i16

§

type HexadecimalString = String<{ $size }>

source§

impl SerialWritableHexadecimal for i32

§

type HexadecimalString = String<{ $size }>

source§

impl SerialWritableHexadecimal for i64

§

type HexadecimalString = String<{ $size }>

source§

impl SerialWritableHexadecimal for i128

§

type HexadecimalString = String<{ $size }>

source§

impl SerialWritableHexadecimal for isize

§

type HexadecimalString = String<{ $size }>

Implementors§