Mark some types as non_exhaustive.

This commit is contained in:
Stephen Chung
2022-05-03 21:55:08 +08:00
parent 516f5a82a0
commit 2a57bd9d25
5 changed files with 8 additions and 2 deletions

View File

@@ -127,6 +127,7 @@ impl dyn Variant {
/// _(internals)_ Modes of access.
/// Exported under the `internals` feature only.
#[derive(Debug, Eq, PartialEq, Hash, Copy, Clone)]
#[non_exhaustive]
pub enum AccessMode {
/// Mutable.
ReadWrite,