MCPcopy Create free account
hub / github.com/MarcusRainbow/QuantMath / string_or_struct_polymorphic

Function string_or_struct_polymorphic

src/instruments/mod.rs:267–306  ·  view source on GitHub ↗

Sadly, I don't think there is an easy way to make this generic. Part of the problem is the interface to visitor, which parameterises the types for Error and Visitor. It is therefore hard to implement this in a functor or passed-in interface that does not simply reproduce visitor (as here).

(deserializer: D)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

deserializeMethod · 0.70

Calls 1

StringOrStructClass · 0.70

Tested by

no test coverage detected