pub trait SerialWritableDecimal: uDisplay {
    type DecimalString: StringType;

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

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

Required Associated Types§

Provided Methods§

source

fn write_to_serial_as_dec(&self)

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

Implementations on Foreign Types§

source§

impl SerialWritableDecimal for u8

§

type DecimalString = String<{ $size }>

source§

impl SerialWritableDecimal for u16

§

type DecimalString = String<{ $size }>

source§

impl SerialWritableDecimal for u32

§

type DecimalString = String<{ $size }>

source§

impl SerialWritableDecimal for u64

§

type DecimalString = String<{ $size }>

source§

impl SerialWritableDecimal for u128

§

type DecimalString = String<{ $size }>

source§

impl SerialWritableDecimal for usize

§

type DecimalString = String<{ $size }>

source§

impl SerialWritableDecimal for i8

§

type DecimalString = String<{ $size }>

source§

impl SerialWritableDecimal for i16

§

type DecimalString = String<{ $size }>

source§

impl SerialWritableDecimal for i32

§

type DecimalString = String<{ $size }>

source§

impl SerialWritableDecimal for i64

§

type DecimalString = String<{ $size }>

source§

impl SerialWritableDecimal for i128

§

type DecimalString = String<{ $size }>

source§

impl SerialWritableDecimal for isize

§

type DecimalString = String<{ $size }>

Implementors§