Skip to main content

ItemKindExt

Trait ItemKindExt 

Source
pub trait ItemKindExt {
    // Required method
    fn plural(&self) -> &'static str;
}
Expand description

Extension trait for ItemKind to get human-readable descriptions.

Required Methods§

Source

fn plural(&self) -> &'static str

Return the plural form of this item kind (e.g. “functions”, “structs”).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ItemKindExt for ItemKind

Source§

fn plural(&self) -> &'static str

Implementors§