Trait frame_support::dispatch::fmt::Display

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

Format trait for an empty format, {}.

Implementing this trait for a type will automatically implement the ToString trait for the type, allowing the usage of the .to_string() method. Prefer implementing the Display trait for a type, rather than ToString.

Display is similar to Debug, but Display is for user-facing output, and so cannot be derived.

For more information on formatters, see the module-level documentation.

Examples

Implementing Display on a type:

use std::fmt;

struct Point {
    x: i32,
    y: i32,
}

impl fmt::Display for Point {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "({}, {})", self.x, self.y)
    }
}

let origin = Point { x: 0, y: 0 };

assert_eq!(format!("The origin is: {origin}"), "The origin is: (0, 0)");

Required Methods§

source

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

Formats the value using the given formatter.

Examples
use std::fmt;

struct Position {
    longitude: f32,
    latitude: f32,
}

impl fmt::Display for Position {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "({}, {})", self.longitude, self.latitude)
    }
}

assert_eq!("(1.987, 2.983)",
           format!("{}", Position { longitude: 1.987, latitude: 2.983, }));

Implementors§

source§

impl Display for base16ct::error::Error

source§

impl Display for DecodeError

source§

impl Display for bincode::error::ErrorKind

source§

impl Display for bip39::error::ErrorKind

source§

impl Display for MnemonicType

source§

impl Display for byte_slice_cast::Error

source§

impl Display for RoundingError

source§

impl Display for Weekday

source§

impl Display for const_oid::error::Error

source§

impl Display for cpp_demangle::error::Error

source§

impl Display for Reloc

source§

impl Display for DataValue

source§

impl Display for DataValueCastFailure

source§

impl Display for AtomicRmwOp

source§

impl Display for FloatCC

source§

impl Display for IntCC

source§

impl Display for AnyEntity

source§

impl Display for ArgumentPurpose

source§

impl Display for UserFuncName

source§

impl Display for GlobalValueData

source§

impl Display for Opcode

source§

impl Display for KnownSymbol

source§

impl Display for LibCall

source§

impl Display for ExpandedProgramPoint

source§

impl Display for StackSlotKind

source§

impl Display for cranelift_codegen::ir::trapcode::TrapCode

source§

impl Display for CallConv

source§

impl Display for LookupError

source§

impl Display for RegisterMappingError

source§

impl Display for CodegenError

source§

impl Display for LibcallCallConv

source§

impl Display for OptLevel

source§

impl Display for ProbestackStrategy

source§

impl Display for SetError

source§

impl Display for TlsModel

source§

impl Display for crossbeam_channel::err::RecvTimeoutError

source§

impl Display for crossbeam_channel::err::TryRecvError

source§

impl Display for der::error::ErrorKind

source§

impl Display for Class

source§

impl Display for Tag

source§

impl Display for TagMode

source§

impl Display for ed25519_zebra::error::Error

source§

impl Display for gimli::read::Error

source§

impl Display for gimli::read::Error

source§

impl Display for ConvertError

source§

impl Display for gimli::write::Error

source§

impl Display for hex::error::FromHexError

source§

impl Display for humantime::date::Error

source§

impl Display for humantime::duration::Error

source§

impl Display for GetTimezoneError

source§

impl Display for libsecp256k1_core::error::Error

source§

impl Display for log::Level

source§

impl Display for log::LevelFilter

source§

impl Display for num_format::error_kind::ErrorKind

source§

impl Display for parity_wasm::elements::Error

source§

impl Display for Instruction

source§

impl Display for parity_wasm::elements::types::ValueType

source§

impl Display for pkcs8::error::Error

source§

impl Display for rand::distributions::bernoulli::BernoulliError

source§

impl Display for rand::distributions::bernoulli::BernoulliError

source§

impl Display for rand::distributions::weighted::WeightedError

source§

impl Display for rand::distributions::weighted_index::WeightedError

source§

impl Display for OperandConstraint

source§

impl Display for RegAllocError

source§

impl Display for regex::error::Error

source§

impl Display for Ast

Print a display representation of this Ast.

This does not preserve any of the original whitespace formatting that may have originally been present in the concrete syntax from which this Ast was generated.

This implementation uses constant stack space and heap space proportional to the size of the Ast.

source§

impl Display for regex_syntax::ast::ErrorKind

source§

impl Display for regex_syntax::error::Error

source§

impl Display for regex_syntax::hir::ErrorKind

source§

impl Display for rustc_hex::FromHexError

source§

impl Display for MultiSignatureStage

source§

impl Display for SignatureError

source§

impl Display for sec1::error::Error

source§

impl Display for secp256k1::Error

source§

impl Display for serde_json::value::Value

source§

impl Display for CollectionAllocErr

source§

impl Display for ApiError

source§

impl Display for PublicError

source§

impl Display for sp_inherents::Error

source§

impl Display for sp_keystore::Error

source§

impl Display for MultiSigner

source§

impl Display for RuntimeString

source§

impl Display for ExecutionError

source§

impl Display for sp_version::embed::Error

source§

impl Display for spki::error::Error

source§

impl Display for Ss58AddressFormatRegistry

source§

impl Display for target_lexicon::parse_error::ParseError

source§

impl Display for Aarch64Architecture

source§

impl Display for Architecture

source§

impl Display for ArmArchitecture

source§

impl Display for BinaryFormat

source§

impl Display for Environment

source§

impl Display for Mips32Architecture

source§

impl Display for Mips64Architecture

source§

impl Display for OperatingSystem

source§

impl Display for Riscv32Architecture

source§

impl Display for Riscv64Architecture

source§

impl Display for Vendor

source§

impl Display for X86_32Architecture

source§

impl Display for time::ParseError

source§

impl Display for Offset

source§

impl Display for toml::ser::Error

source§

impl Display for toml::value::Value

source§

impl Display for FromDecStrErr

source§

impl Display for wasmi::Error

source§

impl Display for wasmi_core::trap::Trap

source§

impl Display for wasmi_core::trap::TrapCode

source§

impl Display for UntypedError

source§

impl Display for wasmi_core::value::Value

source§

impl Display for wasmi_core::value::ValueType

source§

impl Display for wasmtime::trap::TrapCode

source§

impl Display for ValType

source§

impl Display for CompileError

source§

impl Display for FlagValue

source§

impl Display for SetupError

source§

impl Display for InstantiationError

source§

impl Display for WasmType

source§

impl Display for WasmError

source§

impl Display for TransactionValidityError

source§

impl Display for StateVersion

source§

impl Display for AsciiChar

1.34.0 · source§

impl Display for Infallible

1.7.0 · source§

impl Display for IpAddr

source§

impl Display for SocketAddr

source§

impl Display for VarError

1.60.0 · source§

impl Display for std::io::error::ErrorKind

1.15.0 · source§

impl Display for std::sync::mpsc::RecvTimeoutError

source§

impl Display for std::sync::mpsc::TryRecvError

source§

impl Display for bool

source§

impl Display for char

source§

impl Display for f32

source§

impl Display for f64

source§

impl Display for i8

source§

impl Display for i16

source§

impl Display for i32

source§

impl Display for i64

source§

impl Display for i128

source§

impl Display for isize

source§

impl Display for !

source§

impl Display for str

source§

impl Display for u8

source§

impl Display for u16

source§

impl Display for u32

source§

impl Display for u64

source§

impl Display for u128

source§

impl Display for usize

source§

impl Display for aho_corasick::error::Error

source§

impl Display for Infix

source§

impl Display for Prefix

source§

impl Display for Suffix

source§

impl Display for anyhow::Error

source§

impl Display for base16ct::display::HexDisplay<'_>

source§

impl Display for Mnemonic

source§

impl Display for block_buffer::Error

source§

impl Display for AllocErr

source§

impl Display for chrono::format::ParseError

source§

impl Display for NaiveDate

The Display output of the naive date d is the same as d.format("%Y-%m-%d").

The string printed can be readily parsed via the parse method on str.

Example

use chrono::NaiveDate;

assert_eq!(format!("{}", NaiveDate::from_ymd_opt(2015,  9,  5).unwrap()), "2015-09-05");
assert_eq!(format!("{}", NaiveDate::from_ymd_opt(   0,  1,  1).unwrap()), "0000-01-01");
assert_eq!(format!("{}", NaiveDate::from_ymd_opt(9999, 12, 31).unwrap()), "9999-12-31");

ISO 8601 requires an explicit sign for years before 1 BCE or after 9999 CE.

assert_eq!(format!("{}", NaiveDate::from_ymd_opt(   -1,  1,  1).unwrap()),  "-0001-01-01");
assert_eq!(format!("{}", NaiveDate::from_ymd_opt(10000, 12, 31).unwrap()), "+10000-12-31");
source§

impl Display for NaiveDateTime

The Display output of the naive date and time dt is the same as dt.format("%Y-%m-%d %H:%M:%S%.f").

It should be noted that, for leap seconds not on the minute boundary, it may print a representation not distinguishable from non-leap seconds. This doesn’t matter in practice, since such leap seconds never happened. (By the time of the first leap second on 1972-06-30, every time zone offset around the world has standardized to the 5-minute alignment.)

Example

use chrono::NaiveDate;

let dt = NaiveDate::from_ymd_opt(2016, 11, 15).unwrap().and_hms_opt(7, 39, 24).unwrap();
assert_eq!(format!("{}", dt), "2016-11-15 07:39:24");

Leap seconds may also be used.

let dt = NaiveDate::from_ymd_opt(2015, 6, 30).unwrap().and_hms_milli_opt(23, 59, 59, 1_500).unwrap();
assert_eq!(format!("{}", dt), "2015-06-30 23:59:60.500");
source§

impl Display for NaiveTime

The Display output of the naive time t is the same as t.format("%H:%M:%S%.f").

The string printed can be readily parsed via the parse method on str.

It should be noted that, for leap seconds not on the minute boundary, it may print a representation not distinguishable from non-leap seconds. This doesn’t matter in practice, since such leap seconds never happened. (By the time of the first leap second on 1972-06-30, every time zone offset around the world has standardized to the 5-minute alignment.)

Example

use chrono::NaiveTime;

assert_eq!(format!("{}", NaiveTime::from_hms_opt(23, 56, 4).unwrap()),              "23:56:04");
assert_eq!(format!("{}", NaiveTime::from_hms_milli_opt(23, 56, 4, 12).unwrap()),    "23:56:04.012");
assert_eq!(format!("{}", NaiveTime::from_hms_micro_opt(23, 56, 4, 1234).unwrap()),  "23:56:04.001234");
assert_eq!(format!("{}", NaiveTime::from_hms_nano_opt(23, 56, 4, 123456).unwrap()), "23:56:04.000123456");

Leap seconds may also be used.

assert_eq!(format!("{}", NaiveTime::from_hms_milli_opt(6, 59, 59, 1_500).unwrap()), "06:59:60.500");
source§

impl Display for FixedOffset

source§

impl Display for Utc

source§

impl Display for ParseWeekdayError

source§

impl Display for ObjectIdentifier

source§

impl Display for ConstantData

source§

impl Display for Block

source§

impl Display for Constant

source§

impl Display for DynamicStackSlot

source§

impl Display for DynamicType

source§

impl Display for FuncRef

source§

impl Display for GlobalValue

source§

impl Display for Heap

source§

impl Display for Immediate

source§

impl Display for Inst

source§

impl Display for JumpTable

source§

impl Display for SigRef

source§

impl Display for StackSlot

source§

impl Display for Table

source§

impl Display for UserExternalNameRef

source§

impl Display for cranelift_codegen::ir::entities::Value

source§

impl Display for AbiParam

source§

impl Display for cranelift_codegen::ir::extfunc::Signature

source§

impl Display for UserExternalName

source§

impl Display for Function

source§

impl Display for HeapData

source§

impl Display for Ieee32

source§

impl Display for Ieee64

source§

impl Display for Imm64

source§

impl Display for Offset32

source§

impl Display for Uimm32

source§

impl Display for Uimm64

source§

impl Display for VariableArgs

source§

impl Display for JumpTableData

source§

impl Display for MemFlags

source§

impl Display for ProgramPoint

source§

impl Display for RelSourceLoc

source§

impl Display for SourceLoc

source§

impl Display for DynamicStackSlotData

source§

impl Display for StackSlotData

source§

impl Display for ValueLabel

source§

impl Display for TableData

source§

impl Display for Type

source§

impl Display for Loop

source§

impl Display for Flags

source§

impl Display for cranelift_codegen::settings::Value

source§

impl Display for PassTimes

source§

impl Display for VerifierError

source§

impl Display for VerifierErrors

source§

impl Display for crossbeam_channel::err::RecvError

source§

impl Display for SelectTimeoutError

source§

impl Display for TrySelectError

source§

impl Display for Limb

source§

impl Display for InvalidLength

source§

impl Display for der::datetime::DateTime

source§

impl Display for der::error::Error

source§

impl Display for Length

source§

impl Display for TagNumber

source§

impl Display for digest::errors::InvalidOutputSize

source§

impl Display for digest::errors::InvalidOutputSize

source§

impl Display for digest::mac::MacError

source§

impl Display for InvalidBufferSize

source§

impl Display for digest::InvalidOutputSize

source§

impl Display for ed25519::Signature

source§

impl Display for elliptic_curve::error::Error

source§

impl Display for env_logger::fmt::humantime::imp::Timestamp

source§

impl Display for futures_channel::mpsc::SendError

source§

impl Display for futures_channel::mpsc::TryRecvError

source§

impl Display for Canceled

source§

impl Display for EnterError

source§

impl Display for SpawnError

source§

impl Display for Aborted

source§

impl Display for getrandom::error::Error

source§

impl Display for getrandom::error::Error

source§

impl Display for gimli::constants::DwAccess

source§

impl Display for gimli::constants::DwAccess

source§

impl Display for gimli::constants::DwAddr

source§

impl Display for gimli::constants::DwAddr

source§

impl Display for gimli::constants::DwAt

source§

impl Display for gimli::constants::DwAt

source§

impl Display for gimli::constants::DwAte

source§

impl Display for gimli::constants::DwAte

source§

impl Display for gimli::constants::DwCc

source§

impl Display for gimli::constants::DwCc

source§

impl Display for gimli::constants::DwCfa

source§

impl Display for gimli::constants::DwCfa

source§

impl Display for gimli::constants::DwChildren

source§

impl Display for gimli::constants::DwChildren

source§

impl Display for gimli::constants::DwDefaulted

source§

impl Display for gimli::constants::DwDefaulted

source§

impl Display for gimli::constants::DwDs

source§

impl Display for gimli::constants::DwDs

source§

impl Display for gimli::constants::DwDsc

source§

impl Display for gimli::constants::DwDsc

source§

impl Display for gimli::constants::DwEhPe

source§

impl Display for gimli::constants::DwEhPe

source§

impl Display for gimli::constants::DwEnd

source§

impl Display for gimli::constants::DwEnd

source§

impl Display for gimli::constants::DwForm

source§

impl Display for gimli::constants::DwForm

source§

impl Display for gimli::constants::DwId

source§

impl Display for gimli::constants::DwId

source§

impl Display for gimli::constants::DwIdx

source§

impl Display for gimli::constants::DwIdx

source§

impl Display for gimli::constants::DwInl

source§

impl Display for gimli::constants::DwInl

source§

impl Display for gimli::constants::DwLang

source§

impl Display for gimli::constants::DwLang

source§

impl Display for gimli::constants::DwLle

source§

impl Display for gimli::constants::DwLle

source§

impl Display for gimli::constants::DwLnct

source§

impl Display for gimli::constants::DwLnct

source§

impl Display for gimli::constants::DwLne

source§

impl Display for gimli::constants::DwLne

source§

impl Display for gimli::constants::DwLns

source§

impl Display for gimli::constants::DwLns

source§

impl Display for gimli::constants::DwMacro

source§

impl Display for gimli::constants::DwMacro

source§

impl Display for gimli::constants::DwOp

source§

impl Display for gimli::constants::DwOp

source§

impl Display for gimli::constants::DwOrd

source§

impl Display for gimli::constants::DwOrd

source§

impl Display for gimli::constants::DwRle

source§

impl Display for gimli::constants::DwRle

source§

impl Display for gimli::constants::DwSect

source§

impl Display for gimli::constants::DwSect

source§

impl Display for gimli::constants::DwSectV2

source§

impl Display for gimli::constants::DwSectV2

source§

impl Display for gimli::constants::DwTag

source§

impl Display for gimli::constants::DwTag

source§

impl Display for gimli::constants::DwUt

source§

impl Display for gimli::constants::DwUt

source§

impl Display for gimli::constants::DwVirtuality

source§

impl Display for gimli::constants::DwVirtuality

source§

impl Display for gimli::constants::DwVis

source§

impl Display for gimli::constants::DwVis

source§

impl Display for Rfc3339Timestamp

source§

impl Display for FormattedDuration

source§

impl Display for humantime::wrapper::Duration

source§

impl Display for humantime::wrapper::Timestamp

source§

impl Display for log::ParseLevelError

source§

impl Display for SetLoggerError

source§

impl Display for BigInt

source§

impl Display for BigUint

source§

impl Display for ParseBigIntError

source§

impl Display for Buffer

source§

impl Display for num_format::error::Error

source§

impl Display for ParseRatioError

source§

impl Display for num_traits::ParseFloatError

source§

impl Display for object::read::Error

source§

impl Display for object::read::Error

source§

impl Display for object::write::Error

source§

impl Display for parity_scale_codec::error::Error

source§

impl Display for H128

source§

impl Display for H160

source§

impl Display for H256

source§

impl Display for H384

source§

impl Display for H512

source§

impl Display for H768

source§

impl Display for U128

source§

impl Display for U256

source§

impl Display for U512

source§

impl Display for rand::rngs::adapter::read::ReadError

source§

impl Display for rand::rngs::adapter::read::ReadError

source§

impl Display for rand_core::error::Error

source§

impl Display for rand_core::error::Error

source§

impl Display for ThreadPoolBuildError

source§

impl Display for Allocation

source§

impl Display for Operand

source§

impl Display for PReg

source§

impl Display for SpillSlot

source§

impl Display for VReg

source§

impl Display for regex::re_bytes::Regex

source§

impl Display for regex::re_unicode::Regex

source§

impl Display for regex_automata::error::Error

source§

impl Display for regex_syntax::ast::Error

source§

impl Display for regex_syntax::hir::Error

source§

impl Display for Hir

Print a display representation of this Hir.

The result of this is a valid regular expression pattern string.

This implementation uses constant stack space and heap space proportional to the size of the Hir.

source§

impl Display for CaseFoldError

source§

impl Display for UnicodeWordError

source§

impl Display for rustix::backend::io::errno::Errno

source§

impl Display for rustix::backend::io::errno::Errno

source§

impl Display for Path<PortableForm>

source§

impl Display for SerializedSignature

source§

impl Display for secp256k1::ecdsa::Signature

source§

impl Display for InvalidParityValue

source§

impl Display for PublicKey

source§

impl Display for XOnlyPublicKey

source§

impl Display for secp256k1::scalar::OutOfRangeError

source§

impl Display for secp256k1::schnorr::Signature

source§

impl Display for Message

source§

impl Display for serde::de::value::Error

source§

impl Display for serde_json::error::Error

source§

impl Display for Number

source§

impl Display for RawValue

source§

impl Display for signature::error::Error

source§

impl Display for sp_application_crypto::ecdsa::app::Public

source§

impl Display for sp_application_crypto::ed25519::app::Public

source§

impl Display for sp_application_crypto::sr25519::app::Public

source§

impl Display for FixedI64

source§

impl Display for FixedI128

source§

impl Display for FixedU64

source§

impl Display for FixedU128

source§

impl Display for AccountId32

source§

impl Display for CryptoTypePublicPair

source§

impl Display for sp_core::ecdsa::Public

source§

impl Display for sp_core::ed25519::Public

source§

impl Display for sp_core::sr25519::Public

source§

impl Display for CodeNotFound

source§

impl Display for RuntimeVersion

source§

impl Display for Ss58AddressFormat

Display the name of the address format (not the description).

source§

impl Display for ss58_registry::error::ParseError

source§

impl Display for TokenAmount

source§

impl Display for Triple

source§

impl Display for ColorChoiceParseError

source§

impl Display for ParseColorError

source§

impl Display for time::duration::Duration

source§

impl Display for time::duration::OutOfRangeError

source§

impl Display for SteadyTime

source§

impl Display for tinyvec::arrayvec::TryFromSliceError

source§

impl Display for toml::datetime::Date

source§

impl Display for Datetime

source§

impl Display for DatetimeParseError

source§

impl Display for Time

source§

impl Display for toml::de::Error

source§

impl Display for SetGlobalDefaultError

source§

impl Display for Field

source§

impl Display for FieldSet

source§

impl Display for tracing_core::metadata::Level

source§

impl Display for tracing_core::metadata::LevelFilter

source§

impl Display for tracing_core::metadata::ParseLevelError

source§

impl Display for ParseLevelFilterError

source§

impl Display for tracing_subscriber::filter::directive::ParseError

source§

impl Display for Directive

source§

impl Display for BadName

source§

impl Display for EnvFilter

source§

impl Display for FromEnvError

source§

impl Display for tracing_subscriber::reload::Error

source§

impl Display for TryInitError

source§

impl Display for uint::uint::FromHexError

source§

impl Display for FromStrRadixErr

source§

impl Display for wasmi_validation::stack::Error

source§

impl Display for wasmi_validation::Error

source§

impl Display for BinaryReaderError

source§

impl Display for MemoryAccessError

source§

impl Display for wasmtime::trap::Trap

source§

impl Display for LinkError

source§

impl Display for NullPtrError

source§

impl Display for Weight

1.57.0 · source§

impl Display for TryReserveError

1.58.0 · source§

impl Display for FromVecWithNulError

1.7.0 · source§

impl Display for IntoStringError

source§

impl Display for NulError

source§

impl Display for FromUtf8Error

source§

impl Display for FromUtf16Error

source§

impl Display for String

1.28.0 · source§

impl Display for LayoutError

source§

impl Display for AllocError

1.36.0 · source§

impl Display for core::array::TryFromSliceError

1.39.0 · source§

impl Display for core::ascii::EscapeDefault

1.13.0 · source§

impl Display for BorrowError

1.13.0 · source§

impl Display for BorrowMutError

1.34.0 · source§

impl Display for CharTryFromError

1.20.0 · source§

impl Display for ParseCharError

1.9.0 · source§

impl Display for DecodeUtf16Error

1.20.0 · source§

impl Display for core::char::EscapeDebug

1.16.0 · source§

impl Display for core::char::EscapeDefault

1.16.0 · source§

impl Display for core::char::EscapeUnicode

1.16.0 · source§

impl Display for ToLowercase

1.16.0 · source§

impl Display for ToUppercase

1.59.0 · source§

impl Display for TryFromCharError

1.69.0 · source§

impl Display for FromBytesUntilNulError

1.17.0 · source§

impl Display for FromBytesWithNulError

source§

impl Display for Ipv4Addr

source§

impl Display for Ipv6Addr

Write an Ipv6Addr, conforming to the canonical style described by RFC 5952.

1.4.0 · source§

impl Display for AddrParseError

source§

impl Display for SocketAddrV4

source§

impl Display for SocketAddrV6

source§

impl Display for core::num::dec2flt::ParseFloatError

source§

impl Display for ParseIntError

1.34.0 · source§

impl Display for TryFromIntError

1.34.0 · source§

impl Display for NonZeroI8

1.34.0 · source§

impl Display for NonZeroI16

1.34.0 · source§

impl Display for NonZeroI32

1.34.0 · source§

impl Display for NonZeroI64

1.34.0 · source§

impl Display for NonZeroI128

1.34.0 · source§

impl Display for NonZeroIsize

1.28.0 · source§

impl Display for NonZeroU8

1.28.0 · source§

impl Display for NonZeroU16

1.28.0 · source§

impl Display for NonZeroU32

1.28.0 · source§

impl Display for NonZeroU64

1.28.0 · source§

impl Display for NonZeroU128

1.28.0 · source§

impl Display for NonZeroUsize

1.26.0 · source§

impl Display for Location<'_>

1.26.0 · source§

impl Display for PanicInfo<'_>

source§

impl Display for ParseBoolError

source§

impl Display for Utf8Error

1.66.0 · source§

impl Display for TryFromFloatSecsError

1.65.0 · source§

impl Display for Backtrace

source§

impl Display for JoinPathsError

1.56.0 · source§

impl Display for WriterPanicked

source§

impl Display for std::io::error::Error

source§

impl Display for Display<'_>

1.7.0 · source§

impl Display for StripPrefixError

source§

impl Display for ExitStatus

source§

impl Display for ExitStatusError

source§

impl Display for std::sync::mpsc::RecvError

1.26.0 · source§

impl Display for AccessError

1.8.0 · source§

impl Display for SystemTimeError

source§

impl Display for crypto_mac::errors::InvalidKeyLength

source§

impl Display for crypto_mac::errors::MacError

source§

impl Display for Arguments<'_>

source§

impl Display for frame_support::dispatch::fmt::Error

§

impl Display for InvalidKeyLength

§

impl Display for MacError

source§

impl Display for dyn Value

source§

impl<'a> Display for BytesOrWideString<'a>

source§

impl<'a> Display for Unexpected<'a>

source§

impl<'a> Display for ANSIGenericString<'a, str>

source§

impl<'a> Display for ANSIGenericStrings<'a, str>

source§

impl<'a> Display for SymbolName<'a>

source§

impl<'a> Display for Base64Display<'a>

source§

impl<'a> Display for CFGPrinter<'a>

source§

impl<'a> Display for DisplayDataValues<'a>

source§

impl<'a> Display for DisplayInst<'a>

source§

impl<'a> Display for DisplayFunction<'a>

source§

impl<'a> Display for Ia5StringRef<'a>

source§

impl<'a> Display for PrintableStringRef<'a>

source§

impl<'a> Display for TeletexStringRef<'a>

source§

impl<'a> Display for Utf8StringRef<'a>

source§

impl<'a> Display for VideotexStringRef<'a>

source§

impl<'a> Display for DecimalStr<'a>

source§

impl<'a> Display for InfinityStr<'a>

source§

impl<'a> Display for MinusSignStr<'a>

source§

impl<'a> Display for NanStr<'a>

source§

impl<'a> Display for PlusSignStr<'a>

source§

impl<'a> Display for SeparatorStr<'a>

source§

impl<'a> Display for Demangle<'a>

source§

impl<'a> Display for sp_core::hexdisplay::HexDisplay<'a>

source§

impl<'a> Display for TmFmt<'a>

source§

impl<'a> Display for ValueSet<'a>

1.60.0 · source§

impl<'a> Display for EscapeAscii<'a>

1.34.0 · source§

impl<'a> Display for core::str::iter::EscapeDebug<'a>

1.34.0 · source§

impl<'a> Display for core::str::iter::EscapeDefault<'a>

1.34.0 · source§

impl<'a> Display for core::str::iter::EscapeUnicode<'a>

source§

impl<'a> Display for dyn Expected + 'a

source§

impl<'a, I> Display for Format<'a, I>where I: Iterator, <I as Iterator>::Item: Display,

source§

impl<'a, I, B> Display for DelayedFormat<I>where I: Iterator<Item = B> + Clone, B: Borrow<Item<'a>>,

source§

impl<'a, I, F> Display for FormatWith<'a, I, F>where I: Iterator, F: FnMut(<I as Iterator>::Item, &mut dyn FnMut(&dyn Display) -> Result<(), Error>) -> Result<(), Error>,

source§

impl<'a, K, V> Display for std::collections::hash::map::OccupiedError<'a, K, V>where K: Debug, V: Debug,

source§

impl<'a, K, V, A> Display for alloc::collections::btree::map::entry::OccupiedError<'a, K, V, A>where K: Debug + Ord, V: Debug, A: Allocator + Clone,

source§

impl<'a, K, V, S, A> Display for hashbrown::map::OccupiedError<'a, K, V, S, A>where K: Debug, V: Debug, A: Allocator + Clone,

source§

impl<'a, R, G, T> Display for MappedReentrantMutexGuard<'a, R, G, T>where R: RawMutex + 'a, G: GetThreadId + 'a, T: Display + 'a + ?Sized,

source§

impl<'a, R, G, T> Display for ReentrantMutexGuard<'a, R, G, T>where R: RawMutex + 'a, G: GetThreadId + 'a, T: Display + 'a + ?Sized,

source§

impl<'a, R, T> Display for MappedMutexGuard<'a, R, T>where R: RawMutex + 'a, T: Display + 'a + ?Sized,

source§

impl<'a, R, T> Display for lock_api::mutex::MutexGuard<'a, R, T>where R: RawMutex + 'a, T: Display + 'a + ?Sized,

source§

impl<'a, R, T> Display for MappedRwLockReadGuard<'a, R, T>where R: RawRwLock + 'a, T: Display + 'a + ?Sized,

source§

impl<'a, R, T> Display for MappedRwLockWriteGuard<'a, R, T>where R: RawRwLock + 'a, T: Display + 'a + ?Sized,

source§

impl<'a, R, T> Display for lock_api::rwlock::RwLockReadGuard<'a, R, T>where R: RawRwLock + 'a, T: Display + 'a + ?Sized,

source§

impl<'a, R, T> Display for RwLockUpgradableReadGuard<'a, R, T>where R: RawRwLockUpgrade + 'a, T: Display + 'a + ?Sized,

source§

impl<'a, R, T> Display for lock_api::rwlock::RwLockWriteGuard<'a, R, T>where R: RawRwLock + 'a, T: Display + 'a + ?Sized,

source§

impl<'a, T> Display for DisplayList<'a, T>where T: 'a + Display,

source§

impl<'a, T> Display for StyledValue<'a, T>where T: Display,

source§

impl<'a, T, O> Display for Domain<'a, Const, T, O>where O: BitOrder, T: BitStore,

source§

impl<'s, T> Display for SliceVec<'s, T>where T: Display,

source§

impl<A> Display for TinyVec<A>where A: Array, <A as Array>::Item: Display,

source§

impl<A> Display for arrayvec::array_string::ArrayString<A>where A: Array<Item = u8> + Copy,

source§

impl<A> Display for ArrayVec<A>where A: Array, <A as Array>::Item: Display,

source§

impl<A, O> Display for BitArray<A, O>where O: BitOrder, A: BitViewSized,

source§

impl<AccountId, AccountIndex> Display for MultiAddress<AccountId, AccountIndex>where AccountId: Debug, AccountIndex: Debug,

source§

impl<B> Display for Cow<'_, B>where B: Display + ToOwned + ?Sized, <B as ToOwned>::Owned: Display,

source§

impl<Block> Display for BlockId<Block>where Block: Block,

source§

impl<C> Display for ecdsa::Signature<C>where C: PrimeCurve, <<<C as Curve>::UInt as ArrayEncoding>::ByteSize as Add<<<C as Curve>::UInt as ArrayEncoding>::ByteSize>>::Output: ArrayLength<u8>,

source§

impl<C> Display for ScalarCore<C>where C: Curve,

source§

impl<C> Display for NonZeroScalar<C>where C: Curve + ScalarArithmetic,

source§

impl<E> Display for AllocOrInitError<E>where E: Display,

source§

impl<E> Display for FormattedFields<E>

source§

impl<E> Display for Report<E>where E: Error,

source§

impl<H> Display for sp_trie::error::Error<H>where Box<TrieError<H, Error<H>>, Global>: Debug,

source§

impl<H, CodecError> Display for sp_trie::trie_codec::Error<H, CodecError>where H: Debug, Box<TrieError<H, CodecError>, Global>: Debug,

source§

impl<HO, CE> Display for trie_db::proof::verify::Error<HO, CE>where HO: Debug, CE: Error,

source§

impl<I> Display for ExactlyOneError<I>where I: Iterator,

source§

impl<I> Display for Decompositions<I>where I: Iterator<Item = char> + Clone,

source§

impl<I> Display for Recompositions<I>where I: Iterator<Item = char> + Clone,

source§

impl<I> Display for Replacements<I>where I: Iterator<Item = char> + Clone,

source§

impl<L, R> Display for Either<L, R>where L: Display, R: Display,

source§

impl<M, T, O> Display for BitRef<'_, M, T, O>where M: Mutability, T: BitStore, O: BitOrder,

1.33.0 · source§

impl<P> Display for Pin<P>where P: Display,

source§

impl<R> Display for BitEnd<R>where R: BitRegister,

source§

impl<R> Display for BitIdx<R>where R: BitRegister,

source§

impl<R> Display for BitIdxError<R>where R: BitRegister,

source§

impl<R> Display for BitMask<R>where R: BitRegister,

source§

impl<R> Display for BitPos<R>where R: BitRegister,

source§

impl<R> Display for BitSel<R>where R: BitRegister,

source§

impl<R, Offset> Display for gimli::read::line::LineInstruction<R, Offset>where R: Reader<Offset = Offset>, Offset: ReaderOffset,

source§

impl<R, Offset> Display for gimli::read::line::LineInstruction<R, Offset>where R: Reader<Offset = Offset>, Offset: ReaderOffset,

source§

impl<Size> Display for EncodedPoint<Size>where Size: ModulusSize,

source§

impl<T> Display for BitPtrError<T>where T: BitStore,

source§

impl<T> Display for BitSpanError<T>where T: BitStore,

source§

impl<T> Display for SendTimeoutError<T>

source§

impl<T> Display for crossbeam_channel::err::TrySendError<T>

source§

impl<T> Display for std::sync::mpsc::TrySendError<T>

source§

impl<T> Display for TryLockError<T>

source§

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

source§

impl<T> Display for &mut Twhere T: Display + ?Sized,

source§

impl<T> Display for arrayvec::errors::CapacityError<T>

source§

impl<T> Display for arrayvec::errors::CapacityError<T>

source§

impl<T> Display for MisalignError<T>

source§

impl<T> Display for Symbol<T>where T: AsRef<[u8]>,

source§

impl<T> Display for crossbeam_channel::err::SendError<T>

source§

impl<T> Display for ShardedLockReadGuard<'_, T>where T: Display + ?Sized,

source§

impl<T> Display for ShardedLockWriteGuard<'_, T>where T: Display + ?Sized,

source§

impl<T> Display for NonZero<T>where T: Display + Zero,

source§

impl<T> Display for crypto_bigint::wrapping::Wrapping<T>where T: Display,

source§

impl<T> Display for futures_channel::mpsc::TrySendError<T>

source§

impl<T> Display for futures_util::io::split::ReuniteError<T>

source§

impl<T> Display for futures_util::lock::bilock::ReuniteError<T>

source§

impl<T> Display for TryFromBigIntError<T>

source§

impl<T> Display for Ratio<T>where T: Display + Clone + Integer,

source§

impl<T> Display for DisplayValue<T>where T: Display,

source§

impl<T> Display for FmtBinary<T>where T: Binary + Display,

source§

impl<T> Display for FmtDisplay<T>where T: Display,

source§

impl<T> Display for FmtList<T>where &'a T: for<'a> IntoIterator, <&'a T as IntoIterator>::Item: for<'a> Display,

source§

impl<T> Display for FmtLowerExp<T>where T: LowerExp + Display,

source§

impl<T> Display for FmtLowerHex<T>where T: LowerHex + Display,

source§

impl<T> Display for FmtOctal<T>where T: Octal + Display,

source§

impl<T> Display for FmtPointer<T>where T: Pointer + Display,

source§

impl<T> Display for FmtUpperExp<T>where T: UpperExp + Display,

source§

impl<T> Display for FmtUpperHex<T>where T: UpperHex + Display,

source§

impl<T> Display for ThinBox<T>where T: Display + ?Sized,

source§

impl<T> Display for Rc<T>where T: Display + ?Sized,

source§

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

1.20.0 · source§

impl<T> Display for Ref<'_, T>where T: Display + ?Sized,

1.20.0 · source§

impl<T> Display for RefMut<'_, T>where T: Display + ?Sized,

source§

impl<T> Display for Saturating<T>where T: Display,

1.10.0 · source§

impl<T> Display for core::num::wrapping::Wrapping<T>where T: Display,

source§

impl<T> Display for std::sync::mpsc::SendError<T>

1.20.0 · source§

impl<T> Display for std::sync::mutex::MutexGuard<'_, T>where T: Display + ?Sized,

source§

impl<T> Display for PoisonError<T>

1.20.0 · source§

impl<T> Display for std::sync::rwlock::RwLockReadGuard<'_, T>where T: Display + ?Sized,

1.20.0 · source§

impl<T> Display for std::sync::rwlock::RwLockWriteGuard<'_, T>where T: Display + ?Sized,

source§

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

source§

impl<T, E> Display for TrieError<T, E>where T: MaybeDebug, E: MaybeDebug,

source§

impl<T, E> Display for TryChunksError<T, E>where E: Display,

source§

impl<T, Item> Display for futures_util::stream::stream::split::ReuniteError<T, Item>

source§

impl<T, O> Display for BitBox<T, O>where O: BitOrder, T: BitStore,

source§

impl<T, O> Display for BitSlice<T, O>where T: BitStore, O: BitOrder,

source§

impl<T, O> Display for BitVec<T, O>where O: BitOrder, T: BitStore,

source§

impl<Tz> Display for chrono::date::Date<Tz>where Tz: TimeZone, <Tz as TimeZone>::Offset: Display,

source§

impl<Tz> Display for chrono::datetime::DateTime<Tz>where Tz: TimeZone, <Tz as TimeZone>::Offset: Display,

source§

impl<W> Display for IntoInnerError<W>

source§

impl<const CAP: usize> Display for arrayvec::array_string::ArrayString<CAP>

source§

impl<const LIMBS: usize> Display for UInt<LIMBS>

source§

impl<const N: usize> Display for GetManyMutError<N>