(self)
| 139 | /// Returns the numeric value of the code point if it is a trailing surrogate. |
| 140 | #[inline] |
| 141 | pub const fn to_trail_surrogate(self) -> Option<TrailSurrogate> { |
| 142 | match self.value { |
| 143 | trail @ 0xDC00..=0xDFFF => Some(TrailSurrogate(trail as u16)), |
| 144 | _ => None, |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | /// Optionally returns a Unicode scalar value for the code point. |
| 149 | /// |
no test coverage detected