pub trait PortReaderT {
// Required method
fn port(&self, name: &str) -> Option<Value>;
}Expand description
The COVERED-path port accessor (bc#94): the by-name read a combined handler uses, WITHOUT the
dynamic PortReader::as_any downcast hook. The generated combined runner passes each node’s
CONCRETE ports struct to the handler by direct generic instantiation (&P where
P: PortReaderT, monomorphized per node) — never behind &dyn, never via as_any/downcast.
A PortReaderT handler still reads a port by name (boxing that one field on demand) if it does
not want to name the concrete struct type, but the SEAM itself carries no dyn/as_any: the
concrete type flows through monomorphization. (PortReader — with as_any — stays for the
UNCOVERED NativeComponentExec path, retired later.)
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".