Skip to main content

MetaArg

Trait MetaArg 

Source
pub trait MetaArg<M> {
    // Required method
    fn into_meta(self) -> M;
}
Expand description

Helper trait that lets ToolCollection::register accept either a real M or () when M = NoMeta. Passing () to a typed collection fails at compile time — there’s no silent default.

Required Methods§

Source

fn into_meta(self) -> M

Implementations on Foreign Types§

Source§

impl MetaArg<NoMeta> for ()

Implementors§

Source§

impl<M> MetaArg<M> for M