phf_shared

Trait 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§