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

Method from

crates/wtf8/src/lib.rs:186–188  ·  view source on GitHub ↗
(value: u16)

Source from the content-addressed store, hash-verified

184
185impl From<u16> for CodePoint {
186 fn from(value: u16) -> Self {
187 unsafe { Self::from_u32_unchecked(value.into()) }
188 }
189}
190
191impl From<u8> for CodePoint {

Callers

nothing calls this directly

Calls 5

encode_wtf8Method · 0.80
into_boxMethod · 0.80
to_ownedMethod · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected