MCPcopy Index your code
hub / github.com/davidhewitt/pythonize / serialize_field

Method serialize_field

src/ser.rs:547–552  ·  view source on GitHub ↗
(&mut self, value: &T)

Source from the content-addressed store, hash-verified

545 type Error = PythonizeError;
546
547 fn serialize_field<T>(&mut self, value: &T) -> Result<()>
548 where
549 T: ?Sized + Serialize,
550 {
551 ser::SerializeSeq::serialize_element(self, value)
552 }
553
554 fn end(self) -> Result<Bound<'py, PyAny>> {
555 ser::SerializeTuple::end(self)

Callers

nothing calls this directly

Calls 1

serializeMethod · 0.80

Tested by

no test coverage detected