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

Method visit_bool

crates/vm/src/py_serde.rs:137–142  ·  view source on GitHub ↗
(self, value: bool)

Source from the content-addressed store, hash-verified

135 }
136
137 fn visit_bool<E>(self, value: bool) -> Result<Self::Value, E>
138 where
139 E: serde::de::Error,
140 {
141 Ok(self.vm.ctx.new_bool(value).into())
142 }
143
144 // Other signed integers delegate to this method by default, it’s the only one needed
145 fn visit_i64<E>(self, value: i64) -> Result<Self::Value, E>

Callers

nothing calls this directly

Calls 1

new_boolMethod · 0.45

Tested by

no test coverage detected