Skip to main content

FilterField

Trait FilterField 

Source
pub trait FilterField:
    Copy
    + Eq
    + Hash
    + Debug
    + 'static {
    const FIELDS: &'static [Self];

    // Required methods
    fn name(&self) -> &'static str;
    fn kind(&self) -> FieldKind;

    // Provided method
    fn from_name(name: &str) -> Option<Self> { ... }
}

Required Associated Constants§

Source

const FIELDS: &'static [Self]

Required Methods§

Source

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

Source

fn kind(&self) -> FieldKind

Provided Methods§

Source

fn from_name(name: &str) -> Option<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§