We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ac1251 commit d32d1e3Copy full SHA for d32d1e3
src/lib.rs
@@ -22,6 +22,12 @@ impl Script {
22
}
23
24
25
+impl From<char> for Script {
26
+ fn from(o: char) -> Self {
27
+ o.script()
28
+ }
29
+}
30
+
31
impl ScriptExtension {
32
/// Obtain the list of scripts contained inside this ScriptExtension
33
#[cfg(feature = "with_std")]
@@ -46,6 +52,12 @@ impl ScriptExtension {
46
52
47
53
48
54
55
+impl From<char> for ScriptExtension {
56
57
+ o.script_extension()
58
59
60
49
61
/// Extension trait on `char` for calculating script properties
50
62
pub trait UnicodeScript {
51
63
/// Get the script for a given character
0 commit comments