pub fn prefix(&mut self, prefix: &str, resource: T) -> &mut (ResourceDef, T, Option<U>) {
        profile_method!(prefix);

        self.resources
            .push((ResourceDef::prefix(prefix), resource, None));
        self.resources.last_mut().unwrap()
    }
/// Register resource for specified path prefix.
Register resource for specified path prefix.
Register resource for specified path prefix .
pub fn prefix(&mut self, prefix: &str, resource: T) -> &mut (ResourceDef, T, Option<U>) {
        profile_method!(prefix);
        self.resources
            .push((ResourceDef::prefix(prefix), resource, None));
        self.resources.last_mut().unwrap()
    }
pub fn prefix ( & mut self , prefix : & str , resource : T ) -> & mut ( ResourceDef , T , Option < U > ) { profile_method ! ( prefix ) ; self . resources . push ( ( ResourceDef :: prefix ( prefix ) , resource , None ) ) ; self . resources . last_mut ( ) . unwrap ( ) }
Register resource for specified path prefix.
Register resource for specified path prefix .
&mut self
prefix
&str
resource
T