Trait Display

1.0.0 ยท Source
pub trait Display {
    // Required method
    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error> โ“˜;
}
Expand description

๐Ÿ–น core Format trait for an empty format, {}.

Re-exported from core::fmt:: .


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

Sourceยง

impl Display for devela::_core::ascii::Char

1.17.0 ยท Sourceยง

impl Display for FromBytesWithNulError

1.86.0 ยท Sourceยง

impl Display for devela::_core::slice::GetDisjointMutError

1.89.0 ยท Sourceยง

impl Display for devela::_dep::_std::fs::TryLockError

ยง

impl Display for CheckedCastError

ยง

impl Display for PodCastError

ยง

impl Display for SetCursorStyle

ยง

impl Display for KeyCode

ยง

impl Display for MediaKeyCode

ยง

impl Display for ModifierKeyCode

ยง

impl Display for Attribute

ยง

impl Display for Colored

ยง

impl Display for devela::_dep::ffmpeg_the_third::Error

ยง

impl Display for ParsePixelError

ยง

impl Display for devela::_dep::flume::RecvError

ยง

impl Display for devela::_dep::flume::RecvTimeoutError

ยง

impl Display for devela::_dep::flume::TryRecvError

ยง

impl Display for devela::_dep::gilrs::Error

ยง

impl Display for MappingError

ยง

impl Display for DistanceModelError

ยง

impl Display for devela::_dep::gilrs::ff::Error

ยง

impl Display for devela::_dep::image::ImageError

ยง

impl Display for ImageFormatHint

ยง

impl Display for devela::_dep::image::flat::Error

ยง

impl Display for devela::_dep::kira::backend::cpal::Error

ยง

impl Display for FromFileError

ยง

impl Display for ConnectErrorKind

ยง

impl Display for PortInfoError

ยง

impl Display for devela::_dep::midir::SendError

ยง

impl Display for ShaderError

ยง

impl Display for ShaderType

ยง

impl Display for devela::_dep::miniquad::fs::Error

ยง

impl Display for EglError

ยง

impl Display for X11Error

ยง

impl Display for devela::_dep::miniquad::native::module::Error

ยง

impl Display for Associativity

ยง

impl Display for CacheType

ยง

impl Display for DatType

ยง

impl Display for ExtendedRegisterStateLocation

ยง

impl Display for ExtendedRegisterType

ยง

impl Display for TopologyType

ยง

impl Display for DecoderError

ยง

impl Display for devela::_dep::rodio::decoder::symphonia::SeekError

ยง

impl Display for devela::_dep::rodio::source::SeekError

ยง

impl Display for AddMappingError

ยง

impl Display for devela::_dep::sdl2::Error

ยง

impl Display for IntegerOrSdlError

ยง

impl Display for PrefPathError

ยง

impl Display for Scancode

ยง

impl Display for ShowMessageError

ยง

impl Display for TargetRenderError

ยง

impl Display for TextureValueError

ยง

impl Display for UpdateTextureError

ยง

impl Display for UpdateTextureYUVError

ยง

impl Display for FontError

ยง

impl Display for OpenUrlError

ยง

impl Display for WindowBuildError

ยง

impl Display for devela::_dep::symphonia::core::errors::Error

ยง

impl Display for devela::_dep::symphonia::core::meta::Value

ยง

impl Display for DiskKind

ยง

impl Display for ProcessStatus

ยง

impl Display for Signal

ยง

impl Display for devela::_dep::tokio::sync::broadcast::error::RecvError

ยง

impl Display for devela::_dep::tokio::sync::broadcast::error::TryRecvError

ยง

impl Display for TryAcquireError

ยง

impl Display for devela::_dep::tokio::sync::mpsc::error::TryRecvError

ยง

impl Display for devela::_dep::tokio::sync::oneshot::error::TryRecvError

ยง

impl Display for Item

ยง

impl Display for devela::_dep::toml_edit::Offset

ยง

impl Display for devela::_dep::toml_edit::Value

ยง

impl Display for devela::_dep::toml_edit::ser::Error

ยง

impl Display for devela::_dep::ureq::Error

ยง

impl Display for ProxyProtocol

ยง

impl Display for devela::_dep::ureq::Timeout

ยง

impl Display for StrContext

ยง

impl Display for StrContextValue

1.34.0 ยท Sourceยง

impl Display for Infallible

Sourceยง

impl Display for NumError

Sourceยง

impl Display for devela::text::AsciiChar

Sourceยง

impl Display for InvalidText

Sourceยง

impl Display for TextError

Available on crate feature error and textยทยท only.
Sourceยง

impl Display for UiError

Sourceยง

impl Display for AllError

Available on crate feature error only.
Sourceยง

impl Display for DataError

Available on crate feature error and dataยทยท only.
Sourceยง

impl Display for DataNotEnough

Sourceยง

impl Display for devela::all::ImageError

Available on crate feature image only.
1.60.0 ยท Sourceยง

impl Display for ErrorKind

1.7.0 ยท Sourceยง

impl Display for IpAddr

Sourceยง

impl Display for Level

Sourceยง

impl Display for LevelFilter

Sourceยง

impl Display for MismatchedBounds

Sourceยง

impl Display for Month

1.15.0 ยท Sourceยง

impl Display for devela::all::MpscRecvTimeoutError

1.0.0 ยท Sourceยง

impl Display for devela::all::MpscTryRecvError

Sourceยง

impl Display for NotAvailable

Sourceยง

impl Display for PartialSpace

Sourceยง

impl Display for SixelError

Available on crate feature alloc and crate feature term and (crate features io or std) and (crate features dep_hashbrown or std) and crate feature image only.
1.0.0 ยท Sourceยง

impl Display for SocketAddr

Sourceยง

impl Display for TimeError

Available on crate features error and time only.
1.0.0 ยท Sourceยง

impl Display for VarError

Sourceยง

impl Display for Weekday

Sourceยง

impl Display for Variant

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

Sourceยง

impl Display for devela::_core::alloc::AllocError

1.35.0 ยท Sourceยง

impl Display for TryFromSliceError

1.39.0 ยท Sourceยง

impl Display for devela::_core::ascii::EscapeDefault

Sourceยง

impl Display for ByteStr

1.34.0 ยท Sourceยง

impl Display for CharTryFromError

1.9.0 ยท Sourceยง

impl Display for DecodeUtf16Error

1.20.0 ยท Sourceยง

impl Display for devela::_core::char::EscapeDebug

1.16.0 ยท Sourceยง

impl Display for devela::_core::char::EscapeDefault

1.16.0 ยท Sourceยง

impl Display for devela::_core::char::EscapeUnicode

1.20.0 ยท Sourceยง

impl Display for ParseCharError

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.81.0 ยท Sourceยง

impl Display for PanicMessage<'_>

1.0.0 ยท Sourceยง

impl Display for ParseBoolError

1.0.0 ยท Sourceยง

impl Display for devela::_core::str::Utf8Error

Sourceยง

impl Display for ByteString

Sourceยง

impl Display for UnorderedKeyError

1.57.0 ยท Sourceยง

impl Display for devela::_dep::_alloc::collections::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 devela::_dep::_alloc::string::FromUtf8Error

1.0.0 ยท Sourceยง

impl Display for devela::_dep::_alloc::string::FromUtf16Error

1.87.0 ยท Sourceยง

impl Display for devela::_dep::_std::ffi::os_str::Display<'_>

1.56.0 ยท Sourceยง

impl Display for WriterPanicked

Sourceยง

impl Display for NormalizeError

Sourceยง

impl Display for ExitStatusError

1.8.0 ยท Sourceยง

impl Display for devela::_dep::_std::time::SystemTimeError

ยง

impl Display for devela::_dep::allocator_api2::alloc::AllocError

ยง

impl Display for devela::_dep::allocator_api2::collections::TryReserveError

ยง

impl Display for devela::_dep::bumpalo::collections::string::FromUtf16Error

ยง

impl Display for AllocErr

ยง

impl Display for DisableBlinking

ยง

impl Display for EnableBlinking

ยง

impl Display for Hide

ยง

impl Display for MoveDown

ยง

impl Display for MoveLeft

ยง

impl Display for MoveRight

ยง

impl Display for MoveTo

ยง

impl Display for MoveToColumn

ยง

impl Display for MoveToNextLine

ยง

impl Display for MoveToPreviousLine

ยง

impl Display for MoveToRow

ยง

impl Display for MoveUp

ยง

impl Display for RestorePosition

ยง

impl Display for SavePosition

ยง

impl Display for Show

ยง

impl Display for KeyModifiers

ยง

impl Display for PrintStyledContent<&'static str>

ยง

impl Display for PrintStyledContent<String>

ยง

impl Display for ResetColor

ยง

impl Display for SetAttribute

ยง

impl Display for SetBackgroundColor

ยง

impl Display for SetColors

ยง

impl Display for SetForegroundColor

ยง

impl Display for Clear

ยง

impl Display for ScrollDown

ยง

impl Display for ScrollUp

ยง

impl Display for SetSize

ยง

impl Display for Rational

ยง

impl Display for Code

ยง

impl Display for GamepadId

ยง

impl Display for devela::_dep::image::error::DecodingError

ยง

impl Display for devela::_dep::image::error::EncodingError

ยง

impl Display for LimitError

ยง

impl Display for devela::_dep::image::error::ParameterError

ยง

impl Display for UnsupportedError

ยง

impl Display for devela::_dep::jiff::civil::Date

ยง

impl Display for DateTime

Converts a DateTime into an ISO 8601 compliant string.

ยงFormatting options supported

  • std::fmt::Formatter::precision can be set to control the precision of the fractional second component. When not set, the minimum precision required to losslessly render the value is used.

ยงExample

This shows the default rendering:

use jiff::civil::date;

// No fractional seconds:
let dt = date(2024, 6, 15).at(7, 0, 0, 0);
assert_eq!(format!("{dt}"), "2024-06-15T07:00:00");

// With fractional seconds:
let dt = date(2024, 6, 15).at(7, 0, 0, 123_000_000);
assert_eq!(format!("{dt}"), "2024-06-15T07:00:00.123");

ยงExample: setting the precision

use jiff::civil::date;

let dt = date(2024, 6, 15).at(7, 0, 0, 123_000_000);
assert_eq!(format!("{dt:.6}"), "2024-06-15T07:00:00.123000");
// Precision values greater than 9 are clamped to 9.
assert_eq!(format!("{dt:.300}"), "2024-06-15T07:00:00.123000000");
// A precision of 0 implies the entire fractional
// component is always truncated.
assert_eq!(format!("{dt:.0}"), "2024-06-15T07:00:00");
ยง

impl Display for devela::_dep::jiff::civil::Time

Converts a Time into an ISO 8601 compliant string.

ยงFormatting options supported

  • std::fmt::Formatter::precision can be set to control the precision of the fractional second component. When not set, the minimum precision required to losslessly render the value is used.

ยงExample

use jiff::civil::time;

// No fractional seconds:
let t = time(7, 0, 0, 0);
assert_eq!(format!("{t}"), "07:00:00");

// With fractional seconds:
let t = time(7, 0, 0, 123_000_000);
assert_eq!(format!("{t}"), "07:00:00.123");

ยงExample: setting the precision

use jiff::civil::time;

let t = time(7, 0, 0, 123_000_000);
assert_eq!(format!("{t:.6}"), "07:00:00.123000");
// Precision values greater than 9 are clamped to 9.
assert_eq!(format!("{t:.300}"), "07:00:00.123000000");
// A precision of 0 implies the entire fractional
// component is always truncated.
assert_eq!(format!("{t:.0}"), "07:00:00");
ยง

impl Display for devela::_dep::jiff::Error

ยง

impl Display for SignedDuration

ยง

impl Display for Span

ยง

impl Display for Timestamp

Converts a Timestamp datetime into a RFC 3339 compliant string.

Since a Timestamp never has an offset associated with it and is always in UTC, the string emitted by this trait implementation uses Z for โ€œZuluโ€ time. The significance of Zulu time is prescribed by RFC 9557 and means that โ€œthe time in UTC is known, but the offset to local time is unknown.โ€ If you need to emit an RFC 3339 compliant string with a specific offset, then use Timestamp::display_with_offset.

ยงFormatting options supported

  • std::fmt::Formatter::precision can be set to control the precision of the fractional second component. When not set, the minimum precision required to losslessly render the value is used.

ยงExample

This shows the default rendering:

use jiff::Timestamp;

// No fractional seconds.
let ts = Timestamp::from_second(1_123_456_789)?;
assert_eq!(format!("{ts}"), "2005-08-07T23:19:49Z");

// With fractional seconds.
let ts = Timestamp::new(1_123_456_789, 123_000_000)?;
assert_eq!(format!("{ts}"), "2005-08-07T23:19:49.123Z");

ยงExample: setting the precision

use jiff::Timestamp;

let ts = Timestamp::new(1_123_456_789, 123_000_000)?;
assert_eq!(
    format!("{ts:.6}"),
    "2005-08-07T23:19:49.123000Z",
);
// Precision values greater than 9 are clamped to 9.
assert_eq!(
    format!("{ts:.300}"),
    "2005-08-07T23:19:49.123000000Z",
);
// A precision of 0 implies the entire fractional
// component is always truncated.
assert_eq!(
    format!("{ts:.0}"),
    "2005-08-07T23:19:49Z",
);
ยง

impl Display for TimestampDisplayWithOffset

ยง

impl Display for Zoned

Converts a Zoned datetime into a RFC 9557 compliant string.

ยงFormatting options supported

  • std::fmt::Formatter::precision can be set to control the precision of the fractional second component. When not set, the minimum precision required to losslessly render the value is used.

ยงExample

This shows the default rendering:

use jiff::civil::date;

// No fractional seconds:
let zdt = date(2024, 6, 15).at(7, 0, 0, 0).in_tz("US/Eastern")?;
assert_eq!(format!("{zdt}"), "2024-06-15T07:00:00-04:00[US/Eastern]");

// With fractional seconds:
let zdt = date(2024, 6, 15).at(7, 0, 0, 123_000_000).in_tz("US/Eastern")?;
assert_eq!(format!("{zdt}"), "2024-06-15T07:00:00.123-04:00[US/Eastern]");

ยงExample: setting the precision

use jiff::civil::date;

let zdt = date(2024, 6, 15).at(7, 0, 0, 123_000_000).in_tz("US/Eastern")?;
assert_eq!(
    format!("{zdt:.6}"),
    "2024-06-15T07:00:00.123000-04:00[US/Eastern]",
);
// Precision values greater than 9 are clamped to 9.
assert_eq!(
    format!("{zdt:.300}"),
    "2024-06-15T07:00:00.123000000-04:00[US/Eastern]",
);
// A precision of 0 implies the entire fractional
// component is always truncated.
assert_eq!(
    format!("{zdt:.0}"),
    "2024-06-15T07:00:00-04:00[US/Eastern]",
);
ยง

impl Display for devela::_dep::jiff::tz::Offset

ยง

impl Display for ResourceLimitReached

ยง

impl Display for NonexistentRoute

Sourceยง

impl Display for ParseLevelError

ยง

impl Display for InitError

ยง

impl Display for UnknownCryptoError

ยง

impl Display for PyBackedStr

ยง

impl Display for PyBorrowError

ยง

impl Display for PyBorrowMutError

ยง

impl Display for DowncastError<'_, '_>

ยง

impl Display for DowncastIntoError<'_>

ยง

impl Display for PyErr

ยง

impl Display for CacheInfo

ยง

impl Display for SoCVendorBrand

ยง

impl Display for VendorInfo

ยง

impl Display for ThreadPoolBuildError

ยง

impl Display for devela::_dep::regex_lite::Error

ยง

impl Display for Regex

ยง

impl Display for devela::_dep::sdl2::image::InitFlag

ยง

impl Display for Guid

ยง

impl Display for Keycode

ยง

impl Display for Mod

ยง

impl Display for Locale

ยง

impl Display for devela::_dep::sdl2::mixer::InitFlag

ยง

impl Display for SdlError

ยง

impl Display for Version

Sourceยง

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

ยง

impl Display for devela::_dep::simdutf8::basic::Utf8Error

ยง

impl Display for devela::_dep::simdutf8::compat::Utf8Error

ยง

impl Display for Channels

ยง

impl Display for CodecType

ยง

impl Display for devela::_dep::symphonia::core::meta::Tag

ยง

impl Display for i24

ยง

impl Display for u24

ยง

impl Display for TimeBase

ยง

impl Display for IpNetwork

ยง

impl Display for MacAddr

ยง

impl Display for Pid

ยง

impl Display for TryCurrentError

ยง

impl Display for devela::_dep::tokio::sync::oneshot::error::RecvError

ยง

impl Display for AcquireError

ยง

impl Display for devela::_dep::tokio::sync::TryLockError

ยง

impl Display for devela::_dep::tokio::sync::watch::error::RecvError

ยง

impl Display for Id

ยง

impl Display for JoinError

ยง

impl Display for devela::_dep::toml_edit::de::Error

ยง

impl Display for Array

ยง

impl Display for ArrayOfTables

ยง

impl Display for devela::_dep::toml_edit::Date

ยง

impl Display for Datetime

ยง

impl Display for DatetimeParseError

ยง

impl Display for DocumentMut

ยง

impl Display for InlineTable

ยง

impl Display for Key

ยง

impl Display for KeyMut<'_>

ยง

impl Display for Table

ยง

impl Display for devela::_dep::toml_edit::Time

ยง

impl Display for TomlError

Displays a TOML parse error

ยงExample

TOML parse error at line 1, column 10 | 1 | 00:32:00.a999999 | ^ Unexpected a Expected digit While parsing a Time While parsing a Date-Time

ยง

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 devela::_dep::ureq::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 f32x4

ยง

impl Display for f32x8

ยง

impl Display for f64x2

ยง

impl Display for f64x4

ยง

impl Display for i8x16

ยง

impl Display for i8x32

ยง

impl Display for i16x8

ยง

impl Display for i16x16

ยง

impl Display for i32x4

ยง

impl Display for i32x8

ยง

impl Display for i64x2

ยง

impl Display for i64x4

ยง

impl Display for u8x16

ยง

impl Display for u8x32

ยง

impl Display for u16x8

ยง

impl Display for u16x16

ยง

impl Display for u32x4

ยง

impl Display for u32x8

ยง

impl Display for u64x2

ยง

impl Display for u64x4

ยง

impl Display for ContextError

ยง

impl Display for EmptyError

ยง

impl Display for Range

ยง

impl Display for BStr

ยง

impl Display for Bytes

Sourceยง

impl Display for ExampleBitfield

Available on crate feature _bit_u8 and (doc or test) only.
Sourceยง

impl Display for ExampleBitfieldCustom

Available on crate feature _bit_u8 and (doc or test) only.
Sourceยง

impl Display for ExampleBitfieldExtra

Available on crate feature _bit_u8 and (doc or test) only.
Sourceยง

impl Display for ExampleEnumSet

Available on doc or test only.
Sourceยง

impl Display for Divisor<i64>

Sourceยง

impl Display for Divisor<u32>

Sourceยง

impl Display for GraphemeString

Sourceยง

impl Display for InvalidChar

Sourceยง

impl Display for InvalidUtf8

Sourceยง

impl Display for char7

Sourceยง

impl Display for char8

Sourceยง

impl Display for char16

Sourceยง

impl Display for CompressError

Sourceยง

impl Display for flate2::mem::DecompressError

Sourceยง

impl Display for BVec2

Sourceยง

impl Display for BVec3

Sourceยง

impl Display for BVec4

Sourceยง

impl Display for BVec3A

Sourceยง

impl Display for BVec4A

Sourceยง

impl Display for Affine2

Sourceยง

impl Display for Affine3A

Sourceยง

impl Display for Mat3

Sourceยง

impl Display for Mat2

Sourceยง

impl Display for Mat3A

Sourceยง

impl Display for Mat4

Sourceยง

impl Display for Quat

Sourceยง

impl Display for Vec3A

Sourceยง

impl Display for Vec4

Sourceยง

impl Display for Vec2

Sourceยง

impl Display for Vec3

Sourceยง

impl Display for DAffine2

Sourceยง

impl Display for DAffine3

Sourceยง

impl Display for DMat2

Sourceยง

impl Display for DMat3

Sourceยง

impl Display for DMat4

Sourceยง

impl Display for DQuat

Sourceยง

impl Display for DVec2

Sourceยง

impl Display for DVec3

Sourceยง

impl Display for DVec4

Sourceยง

impl Display for I8Vec2

Sourceยง

impl Display for I8Vec3

Sourceยง

impl Display for I8Vec4

Sourceยง

impl Display for I16Vec2

Sourceยง

impl Display for I16Vec3

Sourceยง

impl Display for I16Vec4

Sourceยง

impl Display for IVec2

Sourceยง

impl Display for IVec3

Sourceยง

impl Display for IVec4

Sourceยง

impl Display for I64Vec2

Sourceยง

impl Display for I64Vec3

Sourceยง

impl Display for I64Vec4

Sourceยง

impl Display for U8Vec2

Sourceยง

impl Display for U8Vec3

Sourceยง

impl Display for U8Vec4

Sourceยง

impl Display for U16Vec2

Sourceยง

impl Display for U16Vec3

Sourceยง

impl Display for U16Vec4

Sourceยง

impl Display for UVec2

Sourceยง

impl Display for UVec3

Sourceยง

impl Display for UVec4

Sourceยง

impl Display for U64Vec2

Sourceยง

impl Display for U64Vec3

Sourceยง

impl Display for U64Vec4

Sourceยง

impl Display for USizeVec2

Sourceยง

impl Display for USizeVec3

Sourceยง

impl Display for USizeVec4

Sourceยง

impl Display for BigInt

Sourceยง

impl Display for BigUint

Sourceยง

impl Display for ParseBigIntError

Sourceยง

impl Display for ParseRatioError

Sourceยง

impl Display for num_traits::ParseFloatError

Sourceยง

impl Display for uuid::error::Error

Sourceยง

impl Display for Braced

Sourceยง

impl Display for Hyphenated

Sourceยง

impl Display for Simple

Sourceยง

impl Display for Urn

Sourceยง

impl Display for NonNilUuid

Sourceยง

impl Display for Uuid

1.4.0 ยท Sourceยง

impl Display for AddrParseError

1.65.0 ยท Sourceยง

impl Display for Backtrace

Sourceยง

impl Display for DataOverflow

1.66.0 ยท Sourceยง

impl Display for TryFromFloatSecsError

Sourceยง

impl Display for ElementNotFound

Sourceยง

impl Display for EventTimestamp

Sourceยง

impl Display for FailedErrorConversion

1.0.0 ยท Sourceยง

impl Display for Arguments<'_>

1.0.0 ยท Sourceยง

impl Display for devela::all::FmtError

Sourceยง

impl Display for IndexOutOfBounds

Sourceยง

impl Display for InvalidAxisLength

1.0.0 ยท Sourceยง

impl Display for devela::all::IoError

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.0.0 ยท Sourceยง

impl Display for JoinPathsError

Sourceยง

impl Display for JsInstant

Available on crate feature js only.
Sourceยง

impl Display for KeyAlreadyExists

Sourceยง

impl Display for SetLoggerError

1.28.0 ยท Sourceยง

impl Display for LayoutError

Sourceยง

impl Display for MismatchedCapacity

Sourceยง

impl Display for MismatchedDimensions

Sourceยง

impl Display for MismatchedIndices

1.0.0 ยท Sourceยง

impl Display for devela::all::MpscReceiveError

Sourceยง

impl Display for NoInverse

Sourceยง

impl Display for NodeEmpty

Sourceยง

impl Display for NodeLinkNotSet

Sourceยง

impl Display for NodeLinkNotUnique

Sourceยง

impl Display for NonNegativeRequired

Sourceยง

impl Display for NonZeroRequired

Sourceยง

impl Display for NotEnoughElements

Sourceยง

impl Display for NotEnoughSpace

Sourceยง

impl Display for NotImplemented

Sourceยง

impl Display for NotSupported

Sourceยง

impl Display for NumericOverflow

1.26.0 ยท Sourceยง

impl Display for PanicHookInfo<'_>

1.26.0 ยท Sourceยง

impl Display for PanicInfo<'_>

1.26.0 ยท Sourceยง

impl Display for Location<'_>

1.0.0 ยท Sourceยง

impl Display for devela::all::ParseFloatError

1.0.0 ยท Sourceยง

impl Display for ParseIntError

Sourceยง

impl Display for PartiallyAdded

1.0.0 ยท Sourceยง

impl Display for devela::all::PathDisplay<'_>

1.7.0 ยท Sourceยง

impl Display for StripPrefixError

Sourceยง

impl Display for PositiveRequired

1.0.0 ยท Sourceยง

impl Display for ExitStatus

1.13.0 ยท Sourceยง

impl Display for BorrowError

1.13.0 ยท Sourceยง

impl Display for BorrowMutError

1.0.0 ยท Sourceยง

impl Display for SocketAddrV4

1.0.0 ยท Sourceยง

impl Display for SocketAddrV6

1.0.0 ยท Sourceยง

impl Display for devela::all::String

Sourceยง

impl Display for devela::all::SystemTimeError

Available on crate feature std only.
1.26.0 ยท Sourceยง

impl Display for AccessError

Sourceยง

impl Display for devela::all::Timeout

1.34.0 ยท Sourceยง

impl Display for TryFromIntError

Sourceยง

impl Display for UnixTimeI64

Sourceยง

impl Display for UnixTimeU32

ยง

impl Display for m128

ยง

impl Display for m128d

ยง

impl Display for m128i

ยง

impl Display for m256

ยง

impl Display for m256d

ยง

impl Display for m256i

ยง

impl Display for AllocError

ยง

impl Display for ArenaFull

ยง

impl Display for BackendSpecificError

ยง

impl Display for BlendOp

ยง

impl Display for BuildStreamError

ยง

impl Display for Chmap

ยง

impl Display for ChmapPosition

ยง

impl Display for ChunkError

ยง

impl Display for CollectionAllocErr

ยง

impl Display for DecodeError

ยง

impl Display for DecodeErrors

ยง

impl Display for DecodeSliceError

ยง

impl Display for DecodingError

ยง

impl Display for DecompressError

ยง

impl Display for DefaultStreamConfigError

ยง

impl Display for DeviceNameError

ยง

impl Display for DevicesError

ยง

impl Display for DisposeOp

ยง

impl Display for EncodeSliceError

ยง

impl Display for EncodingError

ยง

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 EvCode

ยง

impl Display for FaceParsingError

ยง

impl Display for Format

ยง

impl Display for GetDisjointMutError

ยง

impl Display for HostUnavailable

ยง

impl Display for InsertWithKeyError

ยง

impl Display for InvalidChunkSize

ยง

impl Display for Language

ยง

impl Display for Output

ยง

impl Display for ParameterError

ยง

impl Display for ParseAlphabetError

ยง

impl Display for ParseError

ยง

impl Display for PauseStreamError

ยง

impl Display for PeekError

ยง

impl Display for PlayStreamError

ยง

impl Display for PopError

ยง

impl Display for SampleFormat

ยง

impl Display for SelemChannelId

ยง

impl Display for SerializerError

ยง

impl Display for StreamError

ยง

impl Display for SupportedStreamConfigsError

ยง

impl Display for Tag

ยง

impl Display for TimeSpec

ยง

impl Display for TimeVal

ยง

impl Display for TryGetError

ยง

impl Display for TryReserveError

ยง

impl Display for TryReserveError

Sourceยง

impl Display for dyn Expected + '_

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 devela::_core::str::EscapeDebug<'a>

1.34.0 ยท Sourceยง

impl<'a> Display for devela::_core::str::EscapeDefault<'a>

1.34.0 ยท Sourceยง

impl<'a> Display for devela::_core::str::EscapeUnicode<'a>

ยง

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

ยง

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

ยง

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

ยง

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

ยง

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

Sourceยง

impl<'a, K, V> Display for devela::_dep::_std::collections::hash_map::OccupiedError<'a, K, V>
where K: Debug, V: Debug,

Sourceยง

impl<'a, K, V, A> Display for devela::_dep::_alloc::collections::btree_map::OccupiedError<'a, K, V, A>
where K: Debug + Ord, 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 devela::_dep::bumpalo::boxed::Box<'a, T>
where T: Display + ?Sized,

ยง

impl<'a, T> Display for devela::_dep::tokio::sync::MappedMutexGuard<'a, T>
where T: Display + ?Sized,

ยง

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

ยง

impl<'a, T> Display for devela::_dep::tokio::sync::RwLockReadGuard<'a, T>
where T: Display + ?Sized,

ยง

impl<'a, T> Display for devela::_dep::tokio::sync::RwLockWriteGuard<'a, T>
where T: Display + ?Sized,

ยง

impl<'bump> Display for devela::_dep::bumpalo::collections::string::FromUtf8Error<'bump>

ยง

impl<'bump> Display for devela::_dep::bumpalo::collections::String<'bump>

ยง

impl<'d> Display for TimeZoneName<'d>

ยง

impl<'f> Display for devela::_dep::jiff::fmt::strtime::Display<'f>

ยง

impl<'n> Display for Pieces<'n>

Sourceยง

impl<'t, T, F, U> Display for OptionFmtOrElse<'t, T, F>
where T: Display, F: Fn() -> U, U: Display,

Sourceยง

impl<'t, T, U> Display for OptionFmtOr<'t, T, U>
where T: Display, U: Display,

1.0.0 ยท Sourceยง

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

Sourceยง

impl<BUF: DstBuf, DST> Display for DstValue<DST, BUF>
where DST: Display + ?Sized,

Available on crate feature unsafe_layout only.
ยง

impl<D> Display for StyledContent<D>
where D: Display,

ยง

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

ยง

impl<E> Display for PlaySoundError<E>

ยง

impl<E> Display for ErrMode<E>
where E: Debug,

Sourceยง

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

Sourceยง

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

Sourceยง

impl<G: Display, C: Display> Display for GcdReturn<G, C>

ยง

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

ยง

impl<I> Display for InputError<I>
where I: Clone + Display,

The Display implementation allows the std::error::Error implementation

ยง

impl<I> Display for TreeErrorBase<I>
where I: Display,

ยง

impl<I> Display for LocatingSlice<I>
where I: Display,

ยง

impl<I> Display for Partial<I>
where I: Display,

ยง

impl<I, C> Display for TreeError<I, C>
where I: Display, C: Display,

ยง

impl<I, C> Display for TreeErrorContext<I, C>
where I: Display, C: Display,

ยง

impl<I, E> Display for devela::_dep::winnow::error::ParseError<I, E>
where I: AsBStr, E: Display,

ยง

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

ยง

impl<I, S> Display for Stateful<I, S>
where I: Display,

ยง

impl<K, V, S, A> Display for devela::_dep::hashbrown::hash_map::OccupiedError<'_, K, V, S, A>
where K: Debug, V: Debug, A: Allocator,

Sourceยง

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

Sourceยง

impl<N: Display, H: Display> Display for Mismatch<N, H>

1.33.0 ยท Sourceยง

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

Sourceยง

impl<S: Display, V: Display> Display for Own<S, V>

Sourceยง

impl<T> Display for devela::_dep::_std::sync::mpmc::SendTimeoutError<T>

ยง

impl<T> Display for devela::_dep::flume::SendTimeoutError<T>

ยง

impl<T> Display for devela::_dep::flume::TrySendError<T>

ยง

impl<T> Display for SetError<T>

ยง

impl<T> Display for devela::_dep::tokio::sync::mpsc::error::TrySendError<T>

1.0.0 ยท Sourceยง

impl<T> Display for devela::all::MpscTrySendError<T>

1.0.0 ยท Sourceยง

impl<T> Display for devela::all::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,

Sourceยง

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

Sourceยง

impl<T> Display for devela::_dep::_std::sync::MappedMutexGuard<'_, T>
where T: Display + ?Sized,

Sourceยง

impl<T> Display for devela::_dep::_std::sync::MappedRwLockReadGuard<'_, T>
where T: Display + ?Sized,

Sourceยง

impl<T> Display for devela::_dep::_std::sync::MappedRwLockWriteGuard<'_, T>
where T: Display + ?Sized,

Sourceยง

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

ยง

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

ยง

impl<T> Display for devela::_dep::flume::SendError<T>

ยง

impl<T> Display for ConnectError<T>

ยง

impl<T> Display for Bound<'_, T>

ยง

impl<T> Display for Py<T>
where T: PyTypeInfo,

ยง

impl<T> Display for devela::_dep::tokio::sync::broadcast::error::SendError<T>

ยง

impl<T> Display for devela::_dep::tokio::sync::mpsc::error::SendError<T>

ยง

impl<T> Display for devela::_dep::tokio::sync::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 SetOnceError<T>

ยง

impl<T> Display for devela::_dep::tokio::sync::watch::error::SendError<T>

ยง

impl<T> Display for Formatted<T>
where T: ValueRepr,

ยง

impl<T> Display for Port<T>

Sourceยง

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

Sourceยง

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

Sourceยง

impl<T> Display for CapacityError<T>

Sourceยง

impl<T> Display for TryFromBigIntError<T>

Sourceยง

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

ยง

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

Sourceยง

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

1.0.0 ยท Sourceยง

impl<T> Display for devela::all::MpscSendError<T>

1.20.0 ยท Sourceยง

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

1.28.0 ยท Sourceยง

impl<T> Display for NonZero<T>

Sourceยง

impl<T> Display for OptionFmt<'_, T>
where T: Display,

1.0.0 ยท Sourceยง

impl<T> Display for PoisonError<T>

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,

1.20.0 ยท Sourceยง

impl<T> Display for devela::all::RwLockReadGuard<'_, T>
where T: Display + ?Sized,

1.20.0 ยท Sourceยง

impl<T> Display for devela::all::RwLockWriteGuard<'_, T>
where T: Display + ?Sized,

1.74.0 ยท Sourceยง

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

Sourceยง

impl<T> Display for TypeResource<T>

1.10.0 ยท Sourceยง

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

ยง

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

ยง

impl<T> Display for InputPublishGuard<'_, T>
where T: Display + Send,

ยง

impl<T> Display for PushError<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 Spanned<T>
where T: Display,

Sourceยง

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

1.0.0 ยท Sourceยง

impl<T, A> Display for devela::_dep::_alloc::sync::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, A> Display for devela::_dep::allocator_api2::boxed::Box<T, A>
where T: Display + ?Sized, A: Allocator,

1.0.0 ยท Sourceยง

impl<T, A> Display for devela::all::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,

ยง

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

ยง

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,

Sourceยง

impl<T: Display> Display for Cast<T>

Available on primยทยท only.
Sourceยง

impl<T: Display> Display for Float<T>

Sourceยง

impl<T: Display> Display for BareBox<T>

Sourceยง

impl<T: Display> Display for CacheAlign<T>

Sourceยง

impl<T: Display> Display for Compare<T>

Sourceยง

impl<T: Display> Display for Interval<T>

Sourceยง

impl<T: Display, const D: usize> Display for Distance<T, D>

Sourceยง

impl<T: Display, const D: usize> Display for Extent<T, D>

Sourceยง

impl<T: Display, const D: usize> Display for Orientation<T, D>

Available on crate feature metric only.
Sourceยง

impl<T: Display, const D: usize> Display for Point<T, D>

Available on crate feature shape only.
Sourceยง

impl<T: Display, const D: usize> Display for Position<T, D>

Sourceยง

impl<T: Display, const D: usize> Display for Stride<T, D>

Available on crate feature metric only.
Sourceยง

impl<T: ArrayDisplay> Display for ArrayFmt<'_, T>

Sourceยง

impl<T: TupleDisplay> Display for TupleFmt<'_, T>

Available on crate feature _tuple only.
Sourceยง

impl<V, Q> Display for ValueQuant<V, Q>
where V: Display, Q: Display,

1.0.0 ยท Sourceยง

impl<W> Display for IntoInnerError<W>

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Available on crate feature _str_nonul only.
Sourceยง

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

Sourceยง

impl<const V: i8> Display for NonValueI8<V>

Sourceยง

impl<const V: i16> Display for NonValueI16<V>

Sourceยง

impl<const V: i32> Display for NonValueI32<V>

Sourceยง

impl<const V: i64> Display for NonValueI64<V>

Sourceยง

impl<const V: i128> Display for NonValueI128<V>

Sourceยง

impl<const V: isize> Display for NonValueIsize<V>

Sourceยง

impl<const V: u8> Display for NonValueU8<V>

Sourceยง

impl<const V: u16> Display for NonValueU16<V>

Sourceยง

impl<const V: u32> Display for NonValueU32<V>

Sourceยง

impl<const V: u64> Display for NonValueU64<V>

Sourceยง

impl<const V: u128> Display for NonValueU128<V>

Sourceยง

impl<const V: usize> Display for NonValueUsize<V>