MCPcopy Index your code
hub / github.com/RustPython/RustPython / to_char

Method to_char

crates/wtf8/src/lib.rs:152–157  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

150 /// Returns `None` if the code point is a surrogate (from U+D800 to U+DFFF).
151 #[inline]
152 pub const fn to_char(self) -> Option<char> {
153 match self.value {
154 0xD800..=0xDFFF => None,
155 _ => Some(unsafe { char::from_u32_unchecked(self.value) }),
156 }
157 }
158
159 /// Returns a Unicode scalar value for the code point.
160 ///

Callers 15

check_ageMethod · 0.45
categoryMethod · 0.45
nameMethod · 0.45
bidirectionalMethod · 0.45
east_asian_widthMethod · 0.45
mirroredMethod · 0.45
combiningMethod · 0.45
decompositionMethod · 0.45
digitMethod · 0.45
decimalMethod · 0.45
numericMethod · 0.45
decode_unicodeFunction · 0.45

Calls 1

SomeClass · 0.50

Tested by

no test coverage detected