pub trait EntityCategory:
Copy
+ Clone
+ Eq
+ PartialEq
+ Hash
+ Debug
+ Send
+ Sync
+ 'static {
// Required methods
fn as_str(&self) -> &'static str;
fn dir(&self) -> &str;
fn summary_prefix(&self) -> &str;
fn to_generic(&self) -> Option<GenericCategory>;
}Expand description
Typed entity category owned by each contract family.
Family parsers define a concrete enum or newtype implementing this trait.
Renderers use EntityCategory::to_generic to apply cross-family formatting
rules via GenericCategory.
Required Methods§
Sourcefn summary_prefix(&self) -> &str
fn summary_prefix(&self) -> &str
Prefix used when generating SUMMARY entries for this category.
Sourcefn to_generic(&self) -> Option<GenericCategory>
fn to_generic(&self) -> Option<GenericCategory>
Maps this family-specific category to a renderer-known generic bucket, if any.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".