Skip to main content

Category

Trait Category 

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

A COGS category.

Required Methods§

Source

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

String representation of the category.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Category for &'static str

Source§

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

Implementors§