summaryrefslogtreecommitdiff
path: root/vendor/unicode-security/src/general_security_profile.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/unicode-security/src/general_security_profile.rs')
-rw-r--r--vendor/unicode-security/src/general_security_profile.rs26
1 files changed, 0 insertions, 26 deletions
diff --git a/vendor/unicode-security/src/general_security_profile.rs b/vendor/unicode-security/src/general_security_profile.rs
deleted file mode 100644
index 7daeddda..00000000
--- a/vendor/unicode-security/src/general_security_profile.rs
+++ /dev/null
@@ -1,26 +0,0 @@
-//! Utilities for working with the [General Security Profile](https://www.unicode.org/reports/tr39/#General_Security_Profile)
-//! for identifiers
-
-use crate::tables::identifier;
-
-pub use identifier::IdentifierType;
-
-/// Methods for determining characters not restricted from use for identifiers.
-pub trait GeneralSecurityProfile {
- /// Returns whether the character is not restricted from use for identifiers.
- fn identifier_allowed(self) -> bool;
-
- /// Returns the [identifier type](https://www.unicode.org/reports/tr39/#Identifier_Status_and_Type)
- fn identifier_type(self) -> Option<IdentifierType>;
-}
-
-impl GeneralSecurityProfile for char {
- #[inline]
- fn identifier_allowed(self) -> bool {
- identifier::identifier_status_allowed(self)
- }
- #[inline]
- fn identifier_type(self) -> Option<IdentifierType> {
- identifier::identifier_type(self)
- }
-}