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.

Loading content...

Implementors

impl Pattern for Origin[src]

impl Pattern for Host[src]

Loading content...