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

Method from_string

crates/common/src/format.rs:66–73  ·  view source on GitHub ↗
(text: &Wtf8)

Source from the content-addressed store, hash-verified

64 }
65
66 fn from_string(text: &Wtf8) -> Option<Self> {
67 let mut chars = text.code_points();
68 if chars.next()? != '!' {
69 return None;
70 }
71
72 Self::from_char(chars.next()?)
73 }
74}
75
76#[derive(Debug, Copy, Clone, PartialEq)]

Callers

nothing calls this directly

Calls 2

code_pointsMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected