Trait phf_shared::FmtConst

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

Trait for printing types with const constructors, used by phf_codegen and phf_macros.

Required Methods§

source

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

Print a const expression representing this value.

Implementations on Foreign Types§

source§

impl FmtConst for bool

source§

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

source§

impl FmtConst for char

source§

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

source§

impl FmtConst for i8

source§

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

source§

impl FmtConst for i16

source§

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

source§

impl FmtConst for i32

source§

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

source§

impl FmtConst for i64

source§

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

source§

impl FmtConst for i128

source§

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

source§

impl FmtConst for isize

source§

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

source§

impl FmtConst for str

source§

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

source§

impl FmtConst for u8

source§

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

source§

impl FmtConst for u16

source§

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

source§

impl FmtConst for u32

source§

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

source§

impl FmtConst for u64

source§

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

source§

impl FmtConst for u128

source§

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

source§

impl FmtConst for usize

source§

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

source§

impl FmtConst for String

source§

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

source§

impl FmtConst for [u8]

source§

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

source§

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

source§

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

source§

impl<const N: usize> FmtConst for [bool; N]

source§

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

source§

impl<const N: usize> FmtConst for [char; N]

source§

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

source§

impl<const N: usize> FmtConst for [i8; N]

source§

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

source§

impl<const N: usize> FmtConst for [i16; N]

source§

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

source§

impl<const N: usize> FmtConst for [i32; N]

source§

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

source§

impl<const N: usize> FmtConst for [i64; N]

source§

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

source§

impl<const N: usize> FmtConst for [i128; N]

source§

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

source§

impl<const N: usize> FmtConst for [isize; N]

source§

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

source§

impl<const N: usize> FmtConst for [u8; N]

source§

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

source§

impl<const N: usize> FmtConst for [u16; N]

source§

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

source§

impl<const N: usize> FmtConst for [u32; N]

source§

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

source§

impl<const N: usize> FmtConst for [u64; N]

source§

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

source§

impl<const N: usize> FmtConst for [u128; N]

source§

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

source§

impl<const N: usize> FmtConst for [usize; N]

source§

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

Implementors§