Trait uDisplay

Source
pub trait uDisplay {
    // Required method
    fn fmt<W>(
        &self,
        _: &mut Formatter<'_, W>,
    ) -> Result<(), <W as uWrite>::Error>
       where W: uWrite + ?Sized;
}
Expand description

Just like core::fmt::Display

Required Methods§

Source

fn fmt<W>(&self, _: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Formats the value using the given formatter

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl uDisplay for bool

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl uDisplay for char

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl uDisplay for i8

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl uDisplay for i16

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl uDisplay for i32

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl uDisplay for i64

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl uDisplay for i128

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl uDisplay for isize

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl uDisplay for str

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl uDisplay for u8

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl uDisplay for u16

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl uDisplay for u32

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl uDisplay for u64

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl uDisplay for u128

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl uDisplay for usize

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl uDisplay for NonZero<i8>

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl uDisplay for NonZero<i16>

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl uDisplay for NonZero<i32>

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl uDisplay for NonZero<i64>

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl uDisplay for NonZero<isize>

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl uDisplay for NonZero<u8>

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl uDisplay for NonZero<u16>

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl uDisplay for NonZero<u32>

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl uDisplay for NonZero<u64>

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl uDisplay for NonZero<usize>

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl<T> uDisplay for &T
where T: uDisplay + ?Sized,

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Source§

impl<T> uDisplay for &mut T
where T: uDisplay + ?Sized,

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Implementors§