jsonrpc_server_utils

Trait Pattern

Source
pub trait Pattern {
    // Required method
    fn matches<T: AsRef<str>>(&self, other: T) -> bool;
}
Expand description

Pattern that can be matched to string.

Required Methods§

Source

fn matches<T: AsRef<str>>(&self, other: T) -> bool

Returns true if given string matches the pattern.

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§