Trait Display

Source
pub trait Display {
    // Required method
    fn fmt(&self, f: &mut Formatter<'_>) -> Result;
}
Expand description

A copy of core::fmt::Display that allows us to implement it for foreign types.

Types should implement this trait rather than core::fmt::Display. Together with the [Adapter] type and fmt! macro, it allows for formatting foreign types (e.g. types from core) which do not implement core::fmt::Display directly.

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

impl Display for bool

Source§

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

Source§

impl Display for char

Source§

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

Source§

impl Display for i8

Source§

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

Source§

impl Display for i16

Source§

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

Source§

impl Display for i32

Source§

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

Source§

impl Display for i64

Source§

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

Source§

impl Display for i128

Source§

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

Source§

impl Display for isize

Source§

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

Source§

impl Display for str

Source§

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

Source§

impl Display for u8

Source§

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

Source§

impl Display for u16

Source§

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

Source§

impl Display for u32

Source§

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

Source§

impl Display for u64

Source§

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

Source§

impl Display for u128

Source§

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

Source§

impl Display for usize

Source§

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

Source§

impl Display for PanicInfo<'_>

Source§

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

Source§

impl<T: ?Sized + Display> Display for &T

Source§

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

Implementors§

Source§

impl Display for FwNode

Source§

impl Display for Class

Source§

impl Display for Vendor

Source§

impl Display for CStr

Source§

impl Display for BStr

Source§

impl Display for Arguments<'_>

Source§

impl<T, A> Display for Box<T, A>
where T: ?Sized + Display, A: Allocator,

Source§

impl<T: Display + ?Sized> Display for Arc<T>

Source§

impl<T: Display + ?Sized> Display for UniqueArc<T>

Source§

impl<T: ?Sized> Display for Arc<T>
where Arc<T>: Display,

Source§

impl<T: ?Sized> Display for UniqueArc<T>
where UniqueArc<T>: Display,