Returns the canonical form of this key. In essence, this converts the file name in the key to uppercase. This is necessary to migrate older versions of the drive that were case sensitive.
(&self)
| 62 | /// In essence, this converts the file name in the key to uppercase. This is necessary to |
| 63 | /// migrate older versions of the drive that were case sensitive. |
| 64 | fn canonical(&self) -> Self { |
| 65 | Self(format!("{}{}", Key::PREFIX, self.name().to_ascii_uppercase())) |
| 66 | } |
| 67 | |
| 68 | /// Constructs a key from a serialized representation of a key, or none if the `raw` string does |
| 69 | /// not correspond to one of our keys. |