pub trait UrlEncode {
// Required method
fn url_encode(&self, m: &mut HashMap<&'static str, String>);
// Provided method
fn encode(&self) -> String { ... }
}
pub trait UrlEncode {
// Required method
fn url_encode(&self, m: &mut HashMap<&'static str, String>);
// Provided method
fn encode(&self) -> String { ... }
}