pub trait AttributeLike {
type Value: ValueLike;
// Required methods
fn key(&self) -> &str;
fn value(&self) -> &Self::Value;
}Expand description
A trait for accessing span attribute key-value pairs.
Provides methods for retrieving the key and value of a span attribute.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".