pub trait KeySpecifierComponentViaDisplayFromStr: Display + FromStr { }Expand description
Implement KeySpecifierComponent in terms of Display and FromStr (helper trait)
The default from_slug implementation maps any errors
returned from FromStr to InvalidKeyPathComponentValue::Bug.
Key specifier components that cannot readily be parsed from a string should have a bespoke
from_slug implementation, and
return more descriptive errors through InvalidKeyPathComponentValue::Slug.
Object Safety§
This trait is not object safe.