Trait strfmt::DisplayStr

source ·
pub trait DisplayStr {
    // Required method
    fn display_str(&self, f: &mut Formatter<'_, '_>) -> Result<()>;
}
Expand description

This trait is effectively an re-implementation for std::fmt::Display It is used to disguise between the value types that should be formatted

Required Methods§

source

fn display_str(&self, f: &mut Formatter<'_, '_>) -> Result<()>

Trait Implementations§

source§

impl DisplayStr for &dyn DisplayStr

source§

fn display_str(&self, f: &mut Formatter<'_, '_>) -> Result<()>

source§

impl DisplayStr for Box<dyn DisplayStr>

source§

fn display_str(&self, f: &mut Formatter<'_, '_>) -> Result<()>

Implementations on Foreign Types§

source§

impl DisplayStr for i8

source§

fn display_str(&self, f: &mut Formatter<'_, '_>) -> Result<()>

source§

impl DisplayStr for i64

source§

fn display_str(&self, f: &mut Formatter<'_, '_>) -> Result<()>

source§

impl DisplayStr for f64

source§

fn display_str(&self, f: &mut Formatter<'_, '_>) -> Result<()>

source§

impl DisplayStr for isize

source§

fn display_str(&self, f: &mut Formatter<'_, '_>) -> Result<()>

source§

impl DisplayStr for u16

source§

fn display_str(&self, f: &mut Formatter<'_, '_>) -> Result<()>

source§

impl DisplayStr for i32

source§

fn display_str(&self, f: &mut Formatter<'_, '_>) -> Result<()>

source§

impl DisplayStr for f32

source§

fn display_str(&self, f: &mut Formatter<'_, '_>) -> Result<()>

source§

impl DisplayStr for &str

source§

fn display_str(&self, f: &mut Formatter<'_, '_>) -> Result<()>

source§

impl DisplayStr for u64

source§

fn display_str(&self, f: &mut Formatter<'_, '_>) -> Result<()>

source§

impl DisplayStr for String

source§

fn display_str(&self, f: &mut Formatter<'_, '_>) -> Result<()>

source§

impl DisplayStr for usize

source§

fn display_str(&self, f: &mut Formatter<'_, '_>) -> Result<()>

source§

impl DisplayStr for u8

source§

fn display_str(&self, f: &mut Formatter<'_, '_>) -> Result<()>

source§

impl DisplayStr for Box<dyn DisplayStr>

source§

fn display_str(&self, f: &mut Formatter<'_, '_>) -> Result<()>

source§

impl DisplayStr for i16

source§

fn display_str(&self, f: &mut Formatter<'_, '_>) -> Result<()>

source§

impl DisplayStr for u32

source§

fn display_str(&self, f: &mut Formatter<'_, '_>) -> Result<()>

Implementors§