Skip to main content

FDisplay

Trait FDisplay 

Source
pub trait FDisplay {
    // Required method
    fn fmt<W: WriteBuffer>(
        &self,
        w: &mut W,
        spec: &FormatSpec,
    ) -> AzUtilResult<()>;
}
Expand description

Custom formatter replacement for the core::fmt::Display trait

Required Methods§

Source

fn fmt<W: WriteBuffer>(&self, w: &mut W, spec: &FormatSpec) -> AzUtilResult<()>

The caller must implement this function to use the [crate::format_str_inner!] macro

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 FDisplay for bool

Source§

fn fmt<W: WriteBuffer>(&self, w: &mut W, _spec: &FormatSpec) -> AzUtilResult<()>

Source§

impl FDisplay for char

Source§

fn fmt<W: WriteBuffer>(&self, w: &mut W, _spec: &FormatSpec) -> AzUtilResult<()>

Source§

impl FDisplay for i8

Source§

fn fmt<W: WriteBuffer>(&self, w: &mut W, spec: &FormatSpec) -> AzUtilResult<()>

Source§

impl FDisplay for i16

Source§

fn fmt<W: WriteBuffer>(&self, w: &mut W, spec: &FormatSpec) -> AzUtilResult<()>

Source§

impl FDisplay for i32

Source§

fn fmt<W: WriteBuffer>(&self, w: &mut W, spec: &FormatSpec) -> AzUtilResult<()>

Source§

impl FDisplay for i64

Source§

fn fmt<W: WriteBuffer>(&self, w: &mut W, spec: &FormatSpec) -> AzUtilResult<()>

Source§

impl FDisplay for i128

Source§

fn fmt<W: WriteBuffer>(&self, w: &mut W, spec: &FormatSpec) -> AzUtilResult<()>

Source§

impl FDisplay for isize

Source§

fn fmt<W: WriteBuffer>(&self, w: &mut W, spec: &FormatSpec) -> AzUtilResult<()>

Source§

impl FDisplay for str

Source§

fn fmt<W: WriteBuffer>(&self, w: &mut W, _spec: &FormatSpec) -> AzUtilResult<()>

Source§

impl FDisplay for u8

Source§

fn fmt<W: WriteBuffer>(&self, w: &mut W, spec: &FormatSpec) -> AzUtilResult<()>

Source§

impl FDisplay for u16

Source§

fn fmt<W: WriteBuffer>(&self, w: &mut W, spec: &FormatSpec) -> AzUtilResult<()>

Source§

impl FDisplay for u32

Source§

fn fmt<W: WriteBuffer>(&self, w: &mut W, spec: &FormatSpec) -> AzUtilResult<()>

Source§

impl FDisplay for u64

Source§

fn fmt<W: WriteBuffer>(&self, w: &mut W, spec: &FormatSpec) -> AzUtilResult<()>

Source§

impl FDisplay for u128

Source§

fn fmt<W: WriteBuffer>(&self, w: &mut W, spec: &FormatSpec) -> AzUtilResult<()>

Source§

impl FDisplay for usize

Source§

fn fmt<W: WriteBuffer>(&self, w: &mut W, spec: &FormatSpec) -> AzUtilResult<()>

Source§

impl FDisplay for String

Source§

fn fmt<W: WriteBuffer>(&self, w: &mut W, spec: &FormatSpec) -> AzUtilResult<()>

Source§

impl<'a, T: ?Sized + FDisplay> FDisplay for &'a T

Source§

fn fmt<W: WriteBuffer>(&self, w: &mut W, spec: &FormatSpec) -> AzUtilResult<()>

Source§

impl<T> FDisplay for *const T

Source§

fn fmt<W: WriteBuffer>(&self, w: &mut W, spec: &FormatSpec) -> AzUtilResult<()>

Source§

impl<T> FDisplay for *mut T

Source§

fn fmt<W: WriteBuffer>(&self, w: &mut W, spec: &FormatSpec) -> AzUtilResult<()>

Source§

impl<T: FDisplay> FDisplay for Option<T>

Source§

fn fmt<W: WriteBuffer>(&self, w: &mut W, spec: &FormatSpec) -> AzUtilResult<()>

Source§

impl<T: FDisplay> FDisplay for Vec<T>

Source§

fn fmt<W: WriteBuffer>(&self, w: &mut W, spec: &FormatSpec) -> AzUtilResult<()>

Source§

impl<T: FDisplay, E: FDisplay> FDisplay for Result<T, E>

Source§

fn fmt<W: WriteBuffer>(&self, w: &mut W, spec: &FormatSpec) -> AzUtilResult<()>

Implementors§