Likable

Trait Likable 

Source
pub trait Likable {
    // Required method
    fn like<T: ToString>(self, _: T) -> Like;
}
Expand description

An object that can be matched.

Required Methods§

Source

fn like<T: ToString>(self, _: T) -> Like

Set a matcher.

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.

Implementations on Foreign Types§

Source§

impl<'l> Likable for &'l str

Source§

fn like<T: ToString>(self, pattern: T) -> Like

Implementors§