@@ -50,7 +50,7 @@ pub const UNICODE_VERSION: (u8, u8, u8) = (16, 0, 0);
50
50
/// # Shaping
51
51
///
52
52
/// The Arabic styles (including those from the
53
- /// [`Doublestruck `](MathStyle::Doublestruck ) style) are not subject to
53
+ /// [`DoubleStruck `](MathStyle::DoubleStruck ) style) are not subject to
54
54
/// shaping. However, [`Plain`](MathStyle::Plain) should still be shaped, as
55
55
/// the characters are Arabic letters in the Arabic block (U+0600..U+06FF).
56
56
///
@@ -140,13 +140,13 @@ pub enum MathStyle {
140
140
/// Supported characters: digits, latin, arabic excluding ا (U+0627),
141
141
/// ك (U+0643), ه (U+0647), and the extras ∑ (U+2211), Γ (U+0393), Π
142
142
/// (U+03A0), γ (U+03B3), π (U+03C0).
143
- Doublestruck ,
143
+ DoubleStruck ,
144
144
/// Italic double-struck style. Also known as italic open-face style or
145
145
/// italic blackboard-bold style.
146
146
///
147
147
/// This is an exceptional style as only the following Latin letters are
148
148
/// supported: D (U+0044), d (U+0064), e (U+0065), i (U+0069), j (U+006A).
149
- DoublestruckItalic ,
149
+ DoubleStruckItalic ,
150
150
/// Chancery variant of script style.
151
151
///
152
152
/// Supported characters: latin.
@@ -254,7 +254,7 @@ impl fmt::Display for ToStyle {
254
254
///
255
255
/// let s = "xγΩAذح1∑س"
256
256
/// .chars()
257
- /// .flat_map(|c| to_style(c, MathStyle::Doublestruck ))
257
+ /// .flat_map(|c| to_style(c, MathStyle::DoubleStruck ))
258
258
/// .collect::<String>();
259
259
/// assert_eq!("𝕩ℽΩ𝔸𞺸𞺧𝟙⅀𞺮", s);
260
260
/// ```
@@ -280,8 +280,8 @@ pub fn to_style(c: char, style: MathStyle) -> ToStyle {
280
280
Tailed => [ to_tailed ( c) , '\0' ] ,
281
281
Stretched => [ to_stretched ( c) , '\0' ] ,
282
282
Looped => [ to_looped ( c) , '\0' ] ,
283
- Doublestruck => [ to_doublestruck ( c) , '\0' ] ,
284
- DoublestruckItalic => [ to_doublestruck_italic ( c) , '\0' ] ,
283
+ DoubleStruck => [ to_double_struck ( c) , '\0' ] ,
284
+ DoubleStruckItalic => [ to_double_struck_italic ( c) , '\0' ] ,
285
285
Chancery => to_chancery ( c) ,
286
286
BoldChancery => to_bold_chancery ( c) ,
287
287
Roundhand => to_roundhand ( c) ,
@@ -698,7 +698,7 @@ mod conversions {
698
698
apply_delta ( c, delta)
699
699
}
700
700
701
- pub fn to_doublestruck ( c : char ) -> char {
701
+ pub fn to_double_struck ( c : char ) -> char {
702
702
let delta = match c {
703
703
// Letterlike Symbols Block (U+2100..U+214F)
704
704
// Letterlike symbols (U+2100..U+2134)
@@ -752,7 +752,7 @@ mod conversions {
752
752
apply_delta ( c, delta)
753
753
}
754
754
755
- pub fn to_doublestruck_italic ( c : char ) -> char {
755
+ pub fn to_double_struck_italic ( c : char ) -> char {
756
756
let delta = match c {
757
757
// Letterlike Symbols Block (U+2100..U+214F)
758
758
// Double-struck italic math symbols (U+2145..U+2149)
0 commit comments