Improve naming of tuple getters, and add mutable tuple getter

Renames the `n*` and `n*_ref` tuple getters to `val*` and `ref*` respectively, and adds `mut*` getters.
This commit is contained in:
Brendan Zabarauskas
2014-02-16 22:19:41 +11:00
parent 2cd7a29013
commit cf0654c47c
5 changed files with 136 additions and 133 deletions

View File

@@ -1379,11 +1379,11 @@ fn render_methods(w: &mut Writer, it: &clean::Item) -> fmt::Result {
match c.impls.find(&it.id) {
Some(v) => {
let mut non_trait = v.iter().filter(|p| {
p.n0_ref().trait_.is_none()
p.ref0().trait_.is_none()
});
let non_trait = non_trait.to_owned_vec();
let mut traits = v.iter().filter(|p| {
p.n0_ref().trait_.is_some()
p.ref0().trait_.is_some()
});
let traits = traits.to_owned_vec();