pub trait EcosystemFormatter:
PackageNaming
+ PackageRendering
+ RequirementResolution
+ DiagnosticMessages
+ DiagnosticPolicy
+ SourcePolicy
+ OsvNaming { }Expand description
Umbrella marker for a complete ecosystem formatter.
This trait is intentionally empty: it exists only so &dyn EcosystemFormatter keeps
working as a single trait-object type at every existing call site
(Ecosystem::formatter, hover, diagnostics, code actions, code lenses, inlay hints,
in-use-version resolution, and OSV scan-target construction). Implementors never write
impl EcosystemFormatter for X directly — the blanket impl below supplies it
automatically for any type implementing all seven concern traits
(PackageNaming, PackageRendering, RequirementResolution,
DiagnosticMessages, DiagnosticPolicy, SourcePolicy, OsvNaming). To add a
new ecosystem formatter, implement those seven traits; to call one specific behavior
(e.g. in a test mock), implement only the trait that owns it.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".