Concept

Trait Concept 

Source
pub trait Concept {
    // Required method
    fn new() -> Self
       where Self: Sized;

    // Provided method
    fn comparator(&self) -> TypeId
       where Self: 'static { ... }
}

Required Methods§

Source

fn new() -> Self
where Self: Sized,

Provided Methods§

Source

fn comparator(&self) -> TypeId
where Self: 'static,

Implementations§

Source§

impl dyn Concept

Source

pub fn is<C: 'static + Concept>(&self) -> bool

Implementors§