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

Method serialize

crates/vm/src/exceptions.rs:1139–1142  ·  view source on GitHub ↗
(&self, s: S)

Source from the content-addressed store, hash-verified

1137#[cfg(feature = "serde")]
1138impl serde::Serialize for SerializeExceptionOwned<'_> {
1139 fn serialize<S: serde::Serializer>(&self, s: S) -> Result<S::Ok, S::Error> {
1140 let Self { vm, exc } = self;
1141 SerializeException::new(vm, exc).serialize(s)
1142 }
1143}
1144
1145#[cfg(feature = "serde")]

Callers

nothing calls this directly

Calls 13

newFunction · 0.85
__traceback__Method · 0.80
__cause__Method · 0.80
__context__Method · 0.80
__suppress_context__Method · 0.80
write_exceptionMethod · 0.80
ArgsClass · 0.70
nameMethod · 0.45
classMethod · 0.45
iterMethod · 0.45
endMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected