scrappy_router

Trait IntoPattern

Source
pub trait IntoPattern {
    // Required methods
    fn is_single(&self) -> bool;
    fn patterns(&self) -> Vec<String>;
}
Expand description

Helper trait for type that could be converted to path pattern

Required Methods§

Source

fn is_single(&self) -> bool

Signle patter

Source

fn patterns(&self) -> Vec<String>

Implementations on Foreign Types§

Source§

impl IntoPattern for String

Source§

impl IntoPattern for [&str; 1]

Source§

impl IntoPattern for [&str; 2]

Source§

impl IntoPattern for [&str; 3]

Source§

impl IntoPattern for [&str; 4]

Source§

impl IntoPattern for [&str; 5]

Source§

impl IntoPattern for [&str; 6]

Source§

impl IntoPattern for [&str; 7]

Source§

impl IntoPattern for [&str; 8]

Source§

impl IntoPattern for [&str; 9]

Source§

impl IntoPattern for [&str; 10]

Source§

impl IntoPattern for [&str; 11]

Source§

impl IntoPattern for [&str; 12]

Source§

impl IntoPattern for [&str; 13]

Source§

impl IntoPattern for [&str; 14]

Source§

impl IntoPattern for [&str; 15]

Source§

impl IntoPattern for [&str; 16]

Source§

impl IntoPattern for [String; 1]

Source§

impl IntoPattern for [String; 2]

Source§

impl IntoPattern for [String; 3]

Source§

impl IntoPattern for [String; 4]

Source§

impl IntoPattern for [String; 5]

Source§

impl IntoPattern for [String; 6]

Source§

impl IntoPattern for [String; 7]

Source§

impl IntoPattern for [String; 8]

Source§

impl IntoPattern for [String; 9]

Source§

impl IntoPattern for [String; 10]

Source§

impl IntoPattern for [String; 11]

Source§

impl IntoPattern for [String; 12]

Source§

impl IntoPattern for [String; 13]

Source§

impl IntoPattern for [String; 14]

Source§

impl IntoPattern for [String; 15]

Source§

impl IntoPattern for [String; 16]

Source§

impl<'a> IntoPattern for &'a str

Source§

impl<'a> IntoPattern for &'a String

Source§

impl<T: AsRef<str>> IntoPattern for Vec<T>

Implementors§