pub trait SpanText:
Debug
+ Eq
+ Hash
+ Borrow<str>
+ Serialize
+ Default {
// Required method
fn from_static_str(value: &'static str) -> Self;
}Expand description
Trait representing the requirements for a type to be used as a Span “string” type.
Note: Borrow
Required Methods§
fn from_static_str(value: &'static str) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.