#[non_exhaustive]pub enum KeySyntax {
Posix,
Portable,
Unicode,
NonWhitespace,
Python,
Compose,
Docker,
}Expand description
Validation of unquoted key bodies.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Posix
ASCII letters/underscore followed by letters, digits or underscore.
Portable
Nonempty ASCII letters, digits, underscore, dot or hyphen.
Unicode
Unicode 17 letters/numbers, underscore, dot or hyphen.
NonWhitespace
Nonempty, excluding Unicode whitespace and equals signs.
Python
Nonempty, excluding Python whitespace, equals signs and hashes.
Compose
Compose’s Unicode letters/numbers, punctuation and horizontal whitespace.
Docker
Nonempty, excluding literal ASCII space, tab and equals signs.
Trait Implementations§
impl Copy for KeySyntax
impl Eq for KeySyntax
impl StructuralPartialEq for KeySyntax
Auto Trait Implementations§
impl Freeze for KeySyntax
impl RefUnwindSafe for KeySyntax
impl Send for KeySyntax
impl Sync for KeySyntax
impl Unpin for KeySyntax
impl UnsafeUnpin for KeySyntax
impl UnwindSafe for KeySyntax
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more