foundry_common_fmt

Trait UIfmt

Source
pub trait UIfmt {
    // Required method
    fn pretty(&self) -> String;
}
Expand description

Helper trait to format Ethereum types.

§Examples

use foundry_common_fmt::UIfmt;

let boolean: bool = true;
let string = boolean.pretty();

Required Methods§

Source

fn pretty(&self) -> String

Return a prettified string version of the value

Implementations on Foreign Types§

Source§

impl UIfmt for bool

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for u64

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for u128

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for String

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for Vec<u8>

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for AccessListItem

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for Address

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for AnyTransactionReceipt

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for AnyTxEnvelope

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for Bloom

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for Bytes

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for Eip658Value

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for I256

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for Log

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for OtherFields

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for Transaction

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for Transaction<AnyTxEnvelope>

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for TxEnvelope

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for TxType

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for [u8]

Source§

fn pretty(&self) -> String

Source§

impl<T: UIfmt> UIfmt for Option<T>

Source§

fn pretty(&self) -> String

Source§

impl<T: UIfmt> UIfmt for &T

Source§

fn pretty(&self) -> String

Source§

impl<T: UIfmt> UIfmt for [T]

Source§

fn pretty(&self) -> String

Source§

impl<T: UIfmt> UIfmt for Block<T, Header<AnyHeader>>

Source§

fn pretty(&self) -> String

Source§

impl<T: UIfmt> UIfmt for BlockTransactions<T>

Source§

fn pretty(&self) -> String

Source§

impl<T: UIfmt> UIfmt for WithOtherFields<T>

Source§

fn pretty(&self) -> String

Source§

impl<const BITS: usize, const LIMBS: usize> UIfmt for Uint<BITS, LIMBS>

Source§

fn pretty(&self) -> String

Source§

impl<const N: usize> UIfmt for FixedBytes<N>

Source§

fn pretty(&self) -> String

Source§

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

Source§

fn pretty(&self) -> String

Implementors§