Display

Trait Display 

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

§Completeness and parseability

Display for a type might not necessarily be a lossless or complete representation of the type. It may omit internal state, precision, or other information the type does not consider important for user-facing output, as determined by the type. As such, the output of Display might not be possible to parse, and even if it is, the result of parsing might not exactly match the original value.

However, if a type has a lossless Display implementation whose output is meant to be conveniently machine-parseable and not just meant for human consumption, then the type may wish to accept the same format in FromStr, and document that usage. Having both Display and FromStr implementations where the result of Display cannot be parsed with FromStr may surprise users.

§Internationalization

Because a type can only have one Display implementation, it is often preferable to only implement Display when there is a single most “obvious” way that values can be formatted as text. This could mean formatting according to the “invariant” culture and “undefined” locale, or it could mean that the type display is designed for a specific culture/locale, such as developer logs.

If not all values have a justifiably canonical textual format or if you want to support alternative formats not covered by the standard set of possible formatting traits, the most flexible approach is display adapters: methods like str::escape_default or Path::display which create a wrapper implementing Display to output the specific display format.

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

1.0.0 · Source

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

Formats the value using the given formatter.

§Errors

This function should return Err if, and only if, the provided Formatter returns Err. String formatting is considered an infallible operation; this function only returns a Result because writing to the underlying stream might fail and it must provide a way to propagate the fact that an error has occurred back up the stack.

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

§

impl Display for SerdeJsonCodecError

§

impl Display for ConfigError

§

impl Display for ConnectError

Source§

impl Display for compio::quic::ConnectionError

Source§

impl Display for compio::quic::ReadError

Source§

impl Display for ReadExactError

Source§

impl Display for StoppedError

Source§

impl Display for compio::quic::WriteError

§

impl Display for compio::quic::h3::error::ConnectionError

§

impl Display for StreamError

§

impl Display for ErrorOrigin

§

impl Display for FrameError

§

impl Display for SettingsError

§

impl Display for HeaderError

§

impl Display for ConnectionErrorIncoming

§

impl Display for StreamErrorIncoming

§

impl Display for EarlyDataError

§

impl Display for VerifierBuilderError

§

impl Display for CertificateError

§

impl Display for compio::tls::rustls::Error

§

impl Display for ExtendedKeyPurpose

§

impl Display for compio::tls::rustls::pki_types::pem::Error

§

impl Display for EncodeError

§

impl Display for EncryptError

§

impl Display for compio::ws::tungstenite::Error

§

impl Display for Message

§

impl Display for compio::ws::tungstenite::error::CapacityError

§

impl Display for ProtocolError

§

impl Display for SubProtocolError

§

impl Display for TlsError

§

impl Display for UrlError

§

impl Display for CloseCode

§

impl Display for Control

§

impl Display for Data

§

impl Display for OpCode

§

impl Display for ReserveError

§

impl Display for ReserveExactError

1.86.0 · Source§

impl Display for compio::buf::bumpalo::core_alloc::slice::GetDisjointMutError

Source§

impl Display for AsciiChar

1.34.0 · Source§

impl Display for Infallible

1.17.0 · Source§

impl Display for FromBytesWithNulError

1.7.0 · Source§

impl Display for IpAddr

1.0.0 · Source§

impl Display for SocketAddr

1.0.0 · Source§

impl Display for VarError

1.89.0 · Source§

impl Display for std::fs::TryLockError

1.60.0 · Source§

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

1.15.0 · Source§

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

1.0.0 · Source§

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

Source§

impl Display for log::Level

Source§

impl Display for log::LevelFilter

Source§

impl Display for Value

Source§

impl Display for BernoulliError

Source§

impl Display for rand::distr::uniform::Error

Source§

impl Display for rand::distr::weighted::Error

1.0.0 · Source§

impl Display for bool

1.0.0 · Source§

impl Display for char

1.0.0 · Source§

impl Display for f16

1.0.0 · Source§

impl Display for f32

1.0.0 · Source§

impl Display for f64

1.0.0 · Source§

impl Display for i8

1.0.0 · Source§

impl Display for i16

1.0.0 · Source§

impl Display for i32

1.0.0 · Source§

impl Display for i64

1.0.0 · Source§

impl Display for i128

1.0.0 · Source§

impl Display for isize

Source§

impl Display for !

1.0.0 · Source§

impl Display for str

1.0.0 · Source§

impl Display for u8

1.0.0 · Source§

impl Display for u16

1.0.0 · Source§

impl Display for u32

1.0.0 · Source§

impl Display for u64

1.0.0 · Source§

impl Display for u128

1.0.0 · Source§

impl Display for usize

§

impl Display for NoInitialCipherSuite

§

impl Display for compio::quic::h3::error::Code

§

impl Display for InvalidPushId

§

impl Display for PushId

§

impl Display for StreamType

§

impl Display for compio::quic::h3::proto::varint::VarInt

§

impl Display for InvalidStreamId

§

impl Display for compio::quic::h3::quic::StreamId

§

impl Display for ApplicationClose

§

impl Display for ClosedStream

§

impl Display for ConnectionClose

§

impl Display for compio::quic::StreamId

§

impl Display for compio::quic::VarInt

§

impl Display for Elapsed

§

impl Display for compio::tls::native_tls::Error

§

impl Display for UnsupportedOperationError

§

impl Display for compio::tls::rustls::pki_types::AddrParseError

§

impl Display for InvalidDnsNameError

§

impl Display for OtherError

§

impl Display for InvalidHeaderName

§

impl Display for InvalidHeaderValue

§

impl Display for MaxSizeReached

§

impl Display for ToStrError

§

impl Display for InvalidMethod

§

impl Display for InvalidStatusCode

§

impl Display for compio::ws::tungstenite::http::Error

§

impl Display for HeaderName

§

impl Display for Method

§

impl Display for StatusCode

Formats the status code, including the canonical reason.

§Example

assert_eq!(format!("{}", StatusCode::OK), "200 OK");
§

impl Display for Uri

§

impl Display for Authority

§

impl Display for InvalidUri

§

impl Display for InvalidUriParts

§

impl Display for PathAndQuery

§

impl Display for Scheme

§

impl Display for Frame

§

impl Display for CloseFrame

§

impl Display for Utf8Bytes

§

impl Display for TryGetError

§

impl Display for AllocErr

Source§

impl Display for AllocError

1.28.0 · Source§

impl Display for LayoutError

Source§

impl Display for ByteStr

Source§

impl Display for ByteString

Source§

impl Display for UnorderedKeyError

1.57.0 · Source§

impl Display for TryReserveError

1.58.0 · Source§

impl Display for FromVecWithNulError

1.7.0 · Source§

impl Display for IntoStringError

1.0.0 · Source§

impl Display for NulError

1.0.0 · Source§

impl Display for ParseBoolError

1.0.0 · Source§

impl Display for Utf8Error

1.0.0 · Source§

impl Display for FromUtf8Error

1.0.0 · Source§

impl Display for FromUtf16Error

1.0.0 · Source§

impl Display for String

1.35.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.0.0 · Source§

impl Display for Ipv4Addr

1.0.0 · Source§

impl Display for Ipv6Addr

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

1.4.0 · Source§

impl Display for core::net::parser::AddrParseError

1.0.0 · Source§

impl Display for SocketAddrV4

1.0.0 · Source§

impl Display for SocketAddrV6

1.0.0 · Source§

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

1.0.0 · Source§

impl Display for ParseIntError

1.34.0 · Source§

impl Display for TryFromIntError

1.26.0 · Source§

impl Display for Location<'_>

1.26.0 · Source§

impl Display for PanicInfo<'_>

1.81.0 · Source§

impl Display for PanicMessage<'_>

1.66.0 · Source§

impl Display for TryFromFloatSecsError

1.65.0 · Source§

impl Display for Backtrace

1.0.0 · Source§

impl Display for JoinPathsError

1.87.0 · Source§

impl Display for std::ffi::os_str::Display<'_>

1.56.0 · Source§

impl Display for WriterPanicked

1.0.0 · Source§

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

1.26.0 · Source§

impl Display for PanicHookInfo<'_>

1.0.0 · Source§

impl Display for std::path::Display<'_>

Source§

impl Display for NormalizeError

1.7.0 · Source§

impl Display for StripPrefixError

1.0.0 · Source§

impl Display for ExitStatus

Source§

impl Display for ExitStatusError

1.0.0 · Source§

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

Source§

impl Display for WouldBlock

1.26.0 · Source§

impl Display for AccessError

1.8.0 · Source§

impl Display for SystemTimeError

Source§

impl Display for getrandom::error::Error

Source§

impl Display for bf16

Available on non-target_arch=spirv only.
Source§

impl Display for f16

Available on non-target_arch=spirv only.
Source§

impl Display for log::ParseLevelError

Source§

impl Display for SetLoggerError

Source§

impl Display for num_traits::ParseFloatError

Source§

impl Display for Asn1GeneralizedTimeRef

Source§

impl Display for Asn1ObjectRef

Source§

impl Display for Asn1TimeRef

Source§

impl Display for BigNum

Source§

impl Display for BigNumRef

Source§

impl Display for openssl::error::Error

Source§

impl Display for ErrorStack

Source§

impl Display for openssl::ssl::error::Error

Source§

impl Display for OpensslString

Source§

impl Display for OpensslStringRef

Source§

impl Display for X509VerifyResult

Source§

impl Display for serde_core::de::value::Error

Source§

impl Display for serde_json::error::Error

Source§

impl Display for Number

Source§

impl Display for Empty

Source§

impl Display for OsError

1.0.0 · Source§

impl Display for Arguments<'_>

1.0.0 · Source§

impl Display for compio::buf::bumpalo::core_alloc::fmt::Error

§

impl Display for Aborted

§

impl Display for AcquireError

§

impl Display for Arg

§

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 Attribute

§

impl Display for BigEndian

§

impl Display for BuildError

§

impl Display for BuildError

§

impl Display for Canceled

§

impl Display for CaseFoldError

§

impl Display for ClearBuffer

§

impl Display for ClearLine

§

impl Display for Code

§

impl Display for CollectionAllocErr

§

impl Display for Color

§

impl Display for ColorChoice

§

impl Display for Command

§

impl Display for ConnectionError

§

impl Display for ConnectionId

§

impl Display for DecodeError

§

impl Display for DecodeKind

§

impl Display for DeserializeError

§

impl Display for Dir

§

impl Display for DisableCursorBlinking

§

impl Display for DisableMouseEvents

§

impl Display for Display<'_>

§

impl Display for DummyBackendError

§

impl Display for EnableCursorBlinking

§

impl Display for EnableMouseEvents

§

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 ErrorKind

§

impl Display for ErrorKind

§

impl Display for ErrorKind

§

impl Display for Field

§

impl Display for FieldSet

§

impl Display for FinishError

§

impl Display for FrameType

§

impl Display for GetDisjointMutError

§

impl Display for Gid

§

impl Display for GroupInfoError

§

impl Display for HideCursor

§

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 Id

§

impl Display for InvalidBufferSize

§

impl Display for InvalidChunkSize

§

impl Display for InvalidLength

§

impl Display for InvalidOutputSize

§

impl Display for KeyRejected

§

impl Display for Level

§

impl Display for LevelFilter

§

impl Display for LittleEndian

§

impl Display for MatchError

§

impl Display for MatchesError

§

impl Display for MoveCursorDown

§

impl Display for MoveCursorLeft

§

impl Display for MoveCursorRight

§

impl Display for MoveCursorTo

§

impl Display for MoveCursorToColumn

§

impl Display for MoveCursorToNextLine

§

impl Display for MoveCursorToPreviousLine

§

impl Display for MoveCursorUp

§

impl Display for PacketDecodeError

§

impl Display for ParseError

§

impl Display for ParseLevelError

§

impl Display for ParseLevelFilterError

§

impl Display for PatternIDError

§

impl Display for PatternSetInsertError

Available on crate feature alloc only.
§

impl Display for Pid

§

impl Display for PushError

§

impl Display for ReadError

§

impl Display for ReadableError

§

impl Display for RecvError

§

impl Display for RecvError

§

impl Display for RecvError

§

impl Display for RecvError

§

impl Display for RecvTimeoutError

§

impl Display for Regex

§

impl Display for Regex

§

impl Display for ReportCursorPosition

§

impl Display for Reset

§

impl Display for ResetAttributes

§

impl Display for ResizeTextArea

§

impl Display for RestoreCursorPosition

§

impl Display for RetryError

§

impl Display for SaveCursorPosition

§

impl Display for ScrollBufferDown

§

impl Display for ScrollBufferUp

§

impl Display for SendDatagramError

§

impl Display for SendDatagramError

§

impl Display for SendError

§

impl Display for SerializeError

§

impl Display for SetAttribute

§

impl Display for SetBackgroundColor

§

impl Display for SetForegroundColor

§

impl Display for SetGlobalDefaultError

§

impl Display for ShowCursor

§

impl Display for SmallIndexError

§

impl Display for SpawnError

§

impl Display for SpecificationError

Available on crate feature alloc only.
§

impl Display for StateIDError

§

impl Display for Str

§

impl Display for Style

§

impl Display for StyledStr

Color-unaware printing. Never uses coloring.

§

impl Display for SwitchBufferToAlternate

§

impl Display for SwitchBufferToNormal

§

impl Display for ThreadPoolBuildError

§

impl Display for TryAcquireError

§

impl Display for TryFromSliceError

§

impl Display for TryLockError

§

impl Display for TryRecvError

§

impl Display for TryRecvError

§

impl Display for TryRecvError

§

impl Display for TryRecvError

§

impl Display for TryRecvError

§

impl Display for Uid

§

impl Display for UnexpectedEnd

§

impl Display for UnicodeWordBoundaryError

§

impl Display for UnicodeWordError

§

impl Display for Unspecified

§

impl Display for ValueRange

§

impl Display for ValueSet<'_>

§

impl Display for VarIntBoundsExceeded

§

impl Display for VersionError

§

impl Display for WriteError

Source§

impl Display for dyn Expected + '_

§

impl Display for dyn Value

Source§

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

1.60.0 · Source§

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

1.34.0 · Source§

impl<'a> Display for compio::buf::bumpalo::core_alloc::str::EscapeDebug<'a>

1.34.0 · Source§

impl<'a> Display for compio::buf::bumpalo::core_alloc::str::EscapeDefault<'a>

1.34.0 · Source§

impl<'a> Display for compio::buf::bumpalo::core_alloc::str::EscapeUnicode<'a>

§

impl<'a> Display for BufReadDecoderError<'a>

§

impl<'a> Display for DecodeError<'a>

§

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

§

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, A> Display for compio::buf::bumpalo::core_alloc::collections::btree_map::OccupiedError<'a, K, V, A>
where K: Debug + Ord, V: Debug, A: Allocator + Clone,

Source§

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

§

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 MappedMutexGuard<'a, T>
where T: Display + ?Sized,

§

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

§

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

§

impl<'a, T> Display for RwLockMappedWriteGuard<'a, T>
where T: Display + ?Sized,

§

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

§

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

§

impl<'a, T> Display for SpinMutexGuard<'a, T>
where T: Display + ?Sized,

§

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

§

impl<'rwlock, T, R> Display for RwLockUpgradableGuard<'rwlock, T, R>
where T: Display + ?Sized,

§

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

§

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

§

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,

§

impl<A, S, V> Display for ConvertError<A, S, V>
where A: Display, S: Display, V: Display,

Produces a human-readable error message.

The message differs between debug and release builds. When debug_assertions are enabled, this message is verbose and includes potentially sensitive information.

1.0.0 · Source§

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

§

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

Source§

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

§

impl<E> Display for DrawingAreaErrorKind<E>
where E: Error + Send + Sync,

§

impl<E> Display for DrawingErrorKind<E>
where E: Error + Send + Sync,

1.93.0 · Source§

impl<F> Display for FromFn<F>
where F: Fn(&mut Formatter<'_>) -> Result<(), Error>,

§

impl<F> Display for Error<F>
where F: ErrorFormatter,

§

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

Source§

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

§

impl<O> Display for F32<O>
where O: ByteOrder,

§

impl<O> Display for F64<O>
where O: ByteOrder,

§

impl<O> Display for I16<O>
where O: ByteOrder,

§

impl<O> Display for I32<O>
where O: ByteOrder,

§

impl<O> Display for I64<O>
where O: ByteOrder,

§

impl<O> Display for I128<O>
where O: ByteOrder,

§

impl<O> Display for Isize<O>
where O: ByteOrder,

§

impl<O> Display for U16<O>
where O: ByteOrder,

§

impl<O> Display for U32<O>
where O: ByteOrder,

§

impl<O> Display for U64<O>
where O: ByteOrder,

§

impl<O> Display for U128<O>
where O: ByteOrder,

§

impl<O> Display for Usize<O>
where O: ByteOrder,

1.33.0 · Source§

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

§

impl<Role> Display for compio::ws::tungstenite::HandshakeError<Role>
where Role: HandshakeRole,

§

impl<S> Display for compio::tls::native_tls::HandshakeError<S>
where S: Any + Debug,

Source§

impl<S> Display for openssl::ssl::error::HandshakeError<S>
where S: Debug,

§

impl<Src, Dst> Display for AlignmentError<Src, Dst>
where Src: Deref, Dst: KnownLayout + ?Sized,

Produces a human-readable error message.

The message differs between debug and release builds. When debug_assertions are enabled, this message is verbose and includes potentially sensitive information.

§

impl<Src, Dst> Display for SizeError<Src, Dst>
where Src: Deref, Dst: KnownLayout + ?Sized,

Produces a human-readable error message.

The message differs between debug and release builds. When debug_assertions are enabled, this message is verbose and includes potentially sensitive information.

§

impl<Src, Dst> Display for ValidityError<Src, Dst>
where Dst: KnownLayout + TryFromBytes + ?Sized,

Produces a human-readable error message.

The message differs between debug and release builds. When debug_assertions are enabled, this message is verbose and includes potentially sensitive information.

Source§

impl<T> Display for std::sync::mpmc::error::SendTimeoutError<T>

1.0.0 · Source§

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

Source§

impl<T> Display for std::sync::oneshot::RecvTimeoutError<T>

Source§

impl<T> Display for std::sync::oneshot::TryRecvError<T>

1.0.0 · Source§

impl<T> Display for std::sync::poison::TryLockError<T>

1.0.0 · Source§

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

1.0.0 · Source§

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

§

impl<T> Display for DispatchError<T>

§

impl<T> Display for compio::net::ReuniteError<T>

1.20.0 · Source§

impl<T> Display for compio::tls::rustls::lock::MutexGuard<'_, T>
where T: Display + ?Sized,

§

impl<T> Display for Port<T>

Source§

impl<T> Display for compio::buf::arrayvec::CapacityError<T>

Source§

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

1.20.0 · Source§

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

1.20.0 · Source§

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

1.28.0 · Source§

impl<T> Display for NonZero<T>

1.74.0 · Source§

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

1.10.0 · Source§

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

1.0.0 · Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

1.20.0 · Source§

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

1.20.0 · Source§

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

1.0.0 · Source§

impl<T> Display for PoisonError<T>

Source§

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

§

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

§

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

§

impl<T> Display for Error<T>
where T: Debug,

§

impl<T> Display for Error<T>
where T: Debug,

§

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

§

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

§

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

§

impl<T> Display for ReuniteError<T>

§

impl<T> Display for SendError<T>

§

impl<T> Display for SendError<T>

§

impl<T> Display for SendError<T>

§

impl<T> Display for SendError<T>

§

impl<T> Display for SendTimeoutError<T>

§

impl<T> Display for SetError<T>

§

impl<T> Display for SetOnceError<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 ThinCell<T>
where T: Display + ?Sized,

§

impl<T> Display for TrySendError<T>

§

impl<T> Display for TrySendError<T>

§

impl<T> Display for TrySendError<T>

§

impl<T> Display for Unalign<T>
where T: Unaligned + Display,

1.0.0 · Source§

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

1.0.0 · Source§

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

Source§

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

1.0.0 · Source§

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

Source§

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

§

impl<T, B> Display for Ref<B, T>
where B: ByteSlice, T: FromBytes + Display + KnownLayout + Immutable + ?Sized,

§

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

§

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

§

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

§

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

§

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

§

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

1.0.0 · Source§

impl<W> Display for IntoInnerError<W>

Source§

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