(self)
| 130 | /// Returns the numeric value of the code point if it is a leading surrogate. |
| 131 | #[inline] |
| 132 | pub const fn to_lead_surrogate(self) -> Option<LeadSurrogate> { |
| 133 | match self.value { |
| 134 | lead @ 0xD800..=0xDBFF => Some(LeadSurrogate(lead as u16)), |
| 135 | _ => None, |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | /// Returns the numeric value of the code point if it is a trailing surrogate. |
| 140 | #[inline] |
no test coverage detected