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 ApiError

source§

impl Display for DeriveError

source§

impl Display for PublicError

source§

impl Display for SecretStringError

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 TransactionValidityError

source§

impl Display for StateVersion

1.34.0 · source§

impl Display for Infallible

1.7.0 · source§

impl Display for IpAddr

source§

impl Display for SocketAddr

1.29.0 · source§

impl Display for proc_macro::TokenTree

Prints the token tree as a string that is supposed to be losslessly convertible back into the same token tree (modulo spans), except for possibly TokenTree::Groups with Delimiter::None delimiters and negative numeric literals.

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 time::ParseError

source§

impl Display for bincode::error::ErrorKind

source§

impl Display for RoundingError

source§

impl Display for Weekday

source§

impl Display for hex::error::FromHexError

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 proc_macro2::TokenTree

Prints the token tree as a string that is supposed to be losslessly convertible back into the same token tree (modulo spans), except for possibly TokenTree::Groups with Delimiter::None delimiters and negative numeric literals.

source§

impl Display for serde_json::value::Value

source§

impl Display for url::parser::ParseError

source§

impl Display for SyntaxViolation

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 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 sp_application_crypto::bandersnatch::app::Public

source§

impl Display for sp_application_crypto::bls377::app::Public

source§

impl Display for sp_application_crypto::bls381::app::Public

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

source§

impl Display for ExpandError

1.29.0 · source§

impl Display for proc_macro::Group

Prints the group as a string that should be losslessly convertible back into the same group (modulo spans), except for possibly TokenTree::Groups with Delimiter::None delimiters.

1.29.0 · source§

impl Display for proc_macro::Ident

Prints the identifier as a string that should be losslessly convertible back into the same identifier.

1.44.0 · source§

impl Display for proc_macro::LexError

1.29.0 · source§

impl Display for proc_macro::Literal

Prints the literal as a string that should be losslessly convertible back into the same literal (except for possible rounding for floating point literals).

1.29.0 · source§

impl Display for proc_macro::Punct

Prints the punctuation character as a string that should be losslessly convertible back into the same character.

1.15.0 · source§

impl Display for proc_macro::TokenStream

Prints the token stream as a string that is supposed to be losslessly convertible back into the same token stream (modulo spans), except for possibly TokenTree::Groups with Delimiter::None delimiters and negative numeric literals.

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 time::duration::Duration

source§

impl Display for time::duration::OutOfRangeError

source§

impl Display for SteadyTime

source§

impl Display for anyhow::Error

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 OutOfRange

source§

impl Display for ParseWeekdayError

source§

impl Display for crypto_mac::errors::InvalidKeyLength

source§

impl Display for crypto_mac::errors::MacError

source§

impl Display for getrandom::error::Error

source§

impl Display for log::ParseLevelError

source§

impl Display for SetLoggerError

source§

impl Display for num_bigint::bigint::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 num_traits::ParseFloatError

source§

impl Display for proc_macro2::Group

Prints the group as a string that should be losslessly convertible back into the same group (modulo spans), except for possibly TokenTree::Groups with Delimiter::None delimiters.

source§

impl Display for proc_macro2::Ident

Prints the identifier as a string that should be losslessly convertible back into the same identifier.

source§

impl Display for proc_macro2::LexError

source§

impl Display for proc_macro2::Literal

source§

impl Display for proc_macro2::Punct

Prints the punctuation character as a string that should be losslessly convertible back into the same character.

source§

impl Display for proc_macro2::TokenStream

Prints the token stream as a string that is supposed to be losslessly convertible back into the same token stream (modulo spans), except for possibly TokenTree::Groups with Delimiter::None delimiters and negative numeric literals.

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 syn::error::Error

source§

impl Display for Lifetime

source§

impl Display for LitFloat

source§

impl Display for LitInt

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 Url

Display the serialization of this URL.

source§

impl Display for getrandom::error::Error

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 Arguments<'_>

source§

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

§

impl Display for Aarch64Architecture

§

impl Display for AbiParam

§

impl Display for Aborted

§

impl Display for AllocErr

§

impl Display for Allocation

§

impl Display for AluRmROpcode

§

impl Display for AluRmiROpcode

§

impl Display for AnyEntity

§

impl Display for Architecture

§

impl Display for ArgumentPurpose

§

impl Display for ArmArchitecture

§

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.

§

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.

§

impl Display for AtomicRmwOp

§

impl Display for Avx512Opcode

§

impl Display for AvxOpcode

§

impl Display for BinaryFormat

§

impl Display for BinaryReaderError

§

impl Display for Block

§

impl Display for BuildError

§

impl Display for CC

§

impl Display for CallConv

§

impl Display for Canceled

§

impl Display for CaseFoldError

§

impl Display for CaseFoldError

§

impl Display for Class

§

impl Display for CodegenError

§

impl Display for CollectionAllocErr

§

impl Display for ColorChoiceParseError

§

impl Display for CompileError

§

impl Display for Constant

§

impl Display for ConstantData

§

impl Display for ConvertError

§

impl Display for DataValue

§

impl Display for DataValueCastFailure

§

impl Display for Date

§

impl Display for DateTime

§

impl Display for Datetime

§

impl Display for DatetimeParseError

§

impl Display for DecodeError

§

impl Display for DecodeError

§

impl Display for DecodeSliceError

§

impl Display for Duration

§

impl Display for DwAccess

§

impl Display for DwAddr

§

impl Display for DwAt

§

impl Display for DwAte

§

impl Display for DwCc

§

impl Display for DwCfa

§

impl Display for DwChildren

§

impl Display for DwDefaulted

§

impl Display for DwDs

§

impl Display for DwDsc

§

impl Display for DwEhPe

§

impl Display for DwEnd

§

impl Display for DwForm

§

impl Display for DwId

§

impl Display for DwIdx

§

impl Display for DwInl

§

impl Display for DwLang

§

impl Display for DwLle

§

impl Display for DwLnct

§

impl Display for DwLne

§

impl Display for DwLns

§

impl Display for DwMacro

§

impl Display for DwOp

§

impl Display for DwOrd

§

impl Display for DwRle

§

impl Display for DwSect

§

impl Display for DwSectV2

§

impl Display for DwTag

§

impl Display for DwUt

§

impl Display for DwVirtuality

§

impl Display for DwVis

§

impl Display for DynamicStackSlot

§

impl Display for DynamicStackSlotData

§

impl Display for DynamicType

§

impl Display for EncodeSliceError

§

impl Display for EnterError

§

impl Display for Environment

§

impl Display for Errno

§

impl Display for Errno

§

impl Display for Errno

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for Error

§

impl Display for ErrorKind

§

impl Display for ErrorKind

§

impl Display for ErrorKind

§

impl Display for ErrorKind

§

impl Display for ErrorKind

§

impl Display for ErrorKind

§

impl Display for Errors

§

impl Display for ExtMode

§

impl Display for Field

§

impl Display for FieldSet

§

impl Display for FlagValue

§

impl Display for Flags

§

impl Display for Flags

§

impl Display for FloatCC

§

impl Display for FormattedDuration

§

impl Display for FromDecStrErr

§

impl Display for FromHexError

§

impl Display for FromHexError

§

impl Display for FromStrRadixErr

§

impl Display for FuncRef

§

impl Display for Function

§

impl Display for GetTimezoneError

§

impl Display for GlobalValue

§

impl Display for GlobalValueData

§

impl Display for H128

§

impl Display for H160

§

impl Display for H256

§

impl Display for H384

§

impl Display for H512

§

impl Display for H768

§

impl Display for HashToCurveError

§

impl Display for Heap

§

impl Display for HexDisplay<'_>

§

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.

§

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.

§

impl Display for Ia5String

§

impl Display for Ieee32

§

impl Display for Ieee64

§

impl Display for Imm64

§

impl Display for Immediate

§

impl Display for Infix

§

impl Display for Inst

§

impl Display for Instruction

§

impl Display for IntCC

§

impl Display for InvalidBufferSize

§

impl Display for InvalidKeyLength

§

impl Display for InvalidLength

§

impl Display for InvalidOutputSize

§

impl Display for InvalidOutputSize

§

impl Display for InvalidOutputSize

§

impl Display for InvalidParityValue

§

impl Display for JumpTable

§

impl Display for KebabStr

§

impl Display for KebabString

§

impl Display for KnownSymbol

§

impl Display for Length

§

impl Display for Level

§

impl Display for LevelFilter

§

impl Display for LibCall

§

impl Display for LibcallCallConv

§

impl Display for Limb

§

impl Display for LookupError

§

impl Display for Loop

§

impl Display for MacError

§

impl Display for MacError

§

impl Display for MatchError

§

impl Display for MemFlags

§

impl Display for MemoryAccessError

§

impl Display for Message

§

impl Display for Mips32Architecture

§

impl Display for Mips64Architecture

§

impl Display for Mnemonic

§

impl Display for MnemonicType

§

impl Display for MultiSignatureStage

§

impl Display for ObjectIdentifier

§

impl Display for Offset

§

impl Display for Offset32

§

impl Display for Opcode

§

impl Display for Operand

§

impl Display for OperandConstraint

§

impl Display for OperatingSystem

§

impl Display for OptLevel

§

impl Display for OutOfRangeError

§

impl Display for PReg

§

impl Display for ParseAlphabetError

§

impl Display for ParseColorError

§

impl Display for ParseError

§

impl Display for ParseError

§

impl Display for ParseLevelError

§

impl Display for ParseLevelFilterError

§

impl Display for Pass

§

impl Display for PassTimes

§

impl Display for Path<PortableForm>

§

impl Display for PatternIDError

§

impl Display for Prefix

§

impl Display for PrintableString

§

impl Display for ProbestackStrategy

§

impl Display for ProgramPoint

§

impl Display for PublicKey

§

impl Display for RecvError

§

impl Display for RecvTimeoutError

§

impl Display for RegAllocError

§

impl Display for Regex

§

impl Display for Regex

§

impl Display for RegisterMappingError

§

impl Display for RelSourceLoc

§

impl Display for Reloc

§

impl Display for Rfc3339Timestamp

§

impl Display for Riscv32Architecture

§

impl Display for Riscv64Architecture

§

impl Display for SelectTimeoutError

§

impl Display for SendError

§

impl Display for SerializationError

§

impl Display for SerializedSignature

§

impl Display for SetError

§

impl Display for SetGlobalDefaultError

§

impl Display for ShiftKind

§

impl Display for SigRef

§

impl Display for Signature

§

impl Display for Signature

§

impl Display for Signature

§

impl Display for Signature

§

impl Display for SignatureError

§

impl Display for SourceLoc

§

impl Display for SpawnError

§

impl Display for SpillSlot

§

impl Display for Ss58AddressFormat

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

§

impl Display for Ss58AddressFormatRegistry

§

impl Display for SseOpcode

§

impl Display for StackSlot

§

impl Display for StackSlotData

§

impl Display for StackSlotKind

§

impl Display for StateIDError

§

impl Display for Suffix

§

impl Display for Table

§

impl Display for TableData

§

impl Display for Tag

§

impl Display for TagMode

§

impl Display for TagNumber

§

impl Display for TeletexString

§

impl Display for ThreadPoolBuildError

§

impl Display for Time

§

impl Display for Timestamp

§

impl Display for Timestamp

§

impl Display for TlsModel

§

impl Display for TokenAmount

§

impl Display for Trap

§

impl Display for TrapCode

§

impl Display for Triple

§

impl Display for TryFromSliceError

§

impl Display for TryRecvError

§

impl Display for TryRecvError

§

impl Display for TrySelectError

§

impl Display for Type

§

impl Display for U128

§

impl Display for U256

§

impl Display for U512

§

impl Display for Uimm32

§

impl Display for Uimm64

§

impl Display for UnaryRmROpcode

§

impl Display for UnicodeWordError

§

impl Display for UnicodeWordError

§

impl Display for UnknownImportError

§

impl Display for UserExternalName

§

impl Display for UserExternalNameRef

§

impl Display for UserFuncName

§

impl Display for VReg

§

impl Display for ValType

§

impl Display for Value

§

impl Display for Value

§

impl Display for Value

§

impl Display for ValueLabel

§

impl Display for ValueType

§

impl Display for Variable

§

impl Display for VariableArgs

§

impl Display for Vendor

§

impl Display for VerifierError

§

impl Display for VerifierErrors

§

impl Display for WasmBacktrace

§

impl Display for WasmError

§

impl Display for WasmFault

§

impl Display for WasmType

§

impl Display for X86_32Architecture

§

impl Display for XOnlyPublicKey

§

impl Display for dyn Value + 'static

source§

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

source§

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

source§

impl<'a> Display for sp_core::hexdisplay::HexDisplay<'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 TmFmt<'a>

source§

impl<'a> Display for SymbolName<'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 ParseBuffer<'a>

§

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

§

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

§

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

§

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

§

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

§

impl<'a> Display for DisplayBlockCall<'a>

§

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

§

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

§

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

§

impl<'a> Display for DisplayJumpTable<'a>

§

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

§

impl<'a> Display for PercentEncode<'a>

§

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

§

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

§

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

§

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

§

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

source§

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

§

impl<'a, 'e, E> Display for Base64Display<'a, 'e, E>where E: Engine,

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,

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

source§

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

§

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

§

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

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,

§

impl<C> Display for NonZeroScalar<C>where C: CurveArithmetic,

§

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

§

impl<C> Display for Signature<C>where C: PrimeCurve, <<C as Curve>::FieldBytesSize as Add<<C as Curve>::FieldBytesSize>>::Output: ArrayLength<u8>,

source§

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

source§

impl<E> Display for FormattedFields<E>

§

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

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,

§

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

source§

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

§

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

§

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

§

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,

1.33.0 · source§

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

§

impl<P> Display for Affine<P>where P: SWCurveConfig,

§

impl<P> Display for Affine<P>where P: TECurveConfig,

§

impl<P> Display for CubicExtField<P>where P: CubicExtConfig,

§

impl<P> Display for MontgomeryAffine<P>where P: MontCurveConfig,

§

impl<P> Display for PairingOutput<P>where P: Pairing,

§

impl<P> Display for Projective<P>where P: SWCurveConfig,

§

impl<P> Display for Projective<P>where P: TECurveConfig,

§

impl<P> Display for QuadExtField<P>where P: QuadExtConfig,

§

impl<P, const N: usize> Display for Fp<P, N>where P: FpConfig<N>,

Outputs a string containing the value of self, represented as a decimal without leading zeroes.

§

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

source§

impl<S> Display for Host<S>where S: AsRef<str>,

§

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

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 sp_core::bls::Public<T>where T: BlsBound,

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> Display for arrayvec::errors::CapacityError<T>

source§

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

source§

impl<T> Display for TryFromBigIntError<T>

§

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

§

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

§

impl<T> Display for ReuniteError<T>

§

impl<T> Display for ReuniteError<T>

§

impl<T> Display for SendError<T>

§

impl<T> Display for SendTimeoutError<T>

§

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

§

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

§

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

§

impl<T> Display for TrySendError<T>

§

impl<T> Display for TrySendError<T>

§

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

source§

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

§

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

§

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

§

impl<T, Item> Display for ReuniteError<T, Item>

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>

§

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

source§

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

§

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