Trait jsonrpc_server_utils::Pattern[][src]

pub trait Pattern {
    fn matches<T: AsRef<str>>(&self, other: T) -> bool;
}
[]

Pattern that can be matched to string.

Required methods

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

Returns true if given string matches the pattern.

Implementors

impl Pattern for Origin[src][+]

impl Pattern for Host[src][+]