pub trait PropertyValue: Sealed {
// Required method
fn property_value(&self) -> Cow<'_, str>;
}Expand description
A value that can be recorded as a property without being formatted first.
Strings borrow, so a bare value costs no allocation. Use %value (Display) or ?value
(Debug) for anything else. The trait is sealed: a deferred log message is rebuilt from
property_value() while the local sink prints the value with Display, so every impl must
produce the same text for both.
Required Methods§
fn property_value(&self) -> Cow<'_, str>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".