Trait rp6::uart::serial_writable::SerialWritableDecimal
source · 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§
sourcefn write_to_serial_as_dec(&self)
fn write_to_serial_as_dec(&self)
Format the given number as decimal and write it to the Serial
connection.