Skip to main content

UIfmt

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl UIfmt for AASigned

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 AnyRpcBlock

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for AnyRpcTransaction

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 Call

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 NonZeroU64

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for OpTxEnvelope

Available on crate feature optimism only.
Source§

fn pretty(&self) -> String

Source§

impl UIfmt for OtherFields

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for Signature

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for SignedAuthorization

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for String

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for TempoSignature

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for TempoTransaction

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for TempoTransactionReceipt

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for TempoTxEnvelope

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for TransactionReceipt

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for TxDeposit

Available on crate feature optimism only.
Source§

fn pretty(&self) -> String

Source§

impl UIfmt for TxEip1559

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for TxEip2930

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for TxEip7702

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for TxEip4844Variant

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for TxEnvelope

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for TxLegacy

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for TxPostExec

Available on crate feature optimism only.
Source§

fn pretty(&self) -> String

Source§

impl UIfmt for Vec<u8>

Source§

fn pretty(&self) -> String

Source§

impl UIfmt for [u8]

Source§

fn pretty(&self) -> String

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<T: UIfmt + Typed2718> UIfmt for Signed<T>
where Self: TxHashRef,

Source§

fn pretty(&self) -> String

Source§

impl<T: UIfmt, H: HeaderResponse + UIfmtHeaderExt> UIfmt for Block<T, H>

Source§

fn pretty(&self) -> String

Source§

impl<T: UIfmt> UIfmt for &T

Source§

fn pretty(&self) -> String

Source§

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

Source§

fn pretty(&self) -> String

Source§

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

Source§

fn pretty(&self) -> String

Source§

impl<T: UIfmt> UIfmt for Transaction<T>

Source§

fn pretty(&self) -> String

Source§

impl<T: UIfmt> UIfmt for Transaction<T>

Available on crate feature optimism only.
Source§

fn pretty(&self) -> String

Source§

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

Source§

fn pretty(&self) -> String

Source§

impl<T: UIfmt> UIfmt for [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§