[][src]Trait jsonrpc_server_utils::Pattern

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

Returns true if given string matches the pattern.

Loading content...

Implementors

impl Pattern for Origin[src]

impl Pattern for Host[src]

Loading content...