review comments

This commit is contained in:
Esteban Küber 2019-10-05 11:37:21 -07:00
parent 722bb515e2
commit 4fcaa4a283
3 changed files with 27 additions and 18 deletions

View file

@ -1053,6 +1053,13 @@ impl Mutability {
MutImmutable => MutImmutable,
}
}
pub fn not(self) -> Self {
match self {
MutMutable => MutImmutable,
MutImmutable => MutMutable,
}
}
}
#[derive(Copy, Clone, PartialEq, RustcEncodable, RustcDecodable, Debug, Hash, HashStable)]