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

Method to_char

crates/common/src/cformat.rs:105–112  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

103
104impl CFormatType {
105 pub const fn to_char(self) -> char {
106 match self {
107 Self::Number(x) => x as u8 as char,
108 Self::Float(x) => x as u8 as char,
109 Self::Character(x) => x as u8 as char,
110 Self::String(x) => x as u8 as char,
111 }
112 }
113}
114
115#[derive(Debug, PartialEq, Clone, Copy)]

Callers 4

can_encodeMethod · 0.45
fromMethod · 0.45
format_complexMethod · 0.45
handle_encode_errorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected