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

Method try_from

crates/stdlib/src/array.rs:585–588  ·  view source on GitHub ↗
(ch: WideChar)

Source from the content-addressed store, hash-verified

583 type Error = String;
584
585 fn try_from(ch: WideChar) -> Result<Self, Self::Error> {
586 // safe because every configuration of bytes for the types we support are valid
587 u32_to_char(ch.0 as _)
588 }
589 }
590
591 impl ToPyResult for WideChar {

Callers

nothing calls this directly

Calls 2

u32_to_charFunction · 0.85
ErrClass · 0.50

Tested by

no test coverage detected