review comments
This commit is contained in:
parent
722bb515e2
commit
4fcaa4a283
3 changed files with 27 additions and 18 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue