Struct pencil::routing::Map [] [src]

pub struct Map {
    // some fields omitted
}

The map stores all the URL rules.

Methods

impl Map

fn new() -> Map

fn add(&mut self, rule: Rule)

fn bind(&self, path: String, method: Method) -> MapAdapter

Trait Implementations

Derived Implementations

impl Clone for Map

fn clone(&self) -> Map

fn clone_from(&mut self, source: &Self)