Skip to main content

CategoryElement

Trait CategoryElement 

Source
pub trait CategoryElement: Sealed {
    // Required method
    fn as_key(&self) -> Option<&str>;
}
Expand description

Sealed raw string input, including nullable strings. No display conversion.

Required Methods§

Source

fn as_key(&self) -> Option<&str>

Borrow the exact present key without normalization.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl CategoryElement for &str

Source§

fn as_key(&self) -> Option<&str>

Source§

impl CategoryElement for Option<&str>

Source§

fn as_key(&self) -> Option<&str>

Source§

impl CategoryElement for Option<String>

Source§

fn as_key(&self) -> Option<&str>

Source§

impl CategoryElement for String

Source§

fn as_key(&self) -> Option<&str>

Implementors§