MCPcopy Create free account
hub / github.com/astral-sh/ruff / serialize

Method serialize

crates/ruff_python_ast/src/python_version.rs:196–201  ·  view source on GitHub ↗
(&self, serializer: S)

Source from the content-addressed store, hash-verified

194
195 impl serde::Serialize for PythonVersion {
196 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
197 where
198 S: serde::Serializer,
199 {
200 serializer.serialize_str(&self.to_string())
201 }
202 }
203}
204

Callers

nothing calls this directly

Calls 1

to_stringMethod · 0.45

Tested by

no test coverage detected