8000 Add Display impl for Script · unicode-rs/unicode-script@78a4028 · GitHub
[go: up one dir, main page]

Skip to content

Commit 78a4028

Browse files
committed
Add Display impl for Script
1 parent 25
8000
43254 commit 78a4028

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ impl From<char> for Script {
112112
}
113113
}
114114

115+
impl fmt::Display for Script {
116+
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
117+
write!(f, "{}", self.full_name())
118+
}
119+
}
120+
115121
#[derive(Clone, Copy, PartialEq, Eq, Hash)]
116122
#[non_exhaustive]
117123
/// A value for the `Script_Extension` property

0 commit comments

Comments
 (0)
0