pub trait PortField {
type Iface: ?Sized + 'static;
// Required methods
fn slot_any(&self) -> Rc<dyn Any>;
fn bound(&self) -> bool;
}Expand description
The bridge between a port field and the generated ComponentNode methods.
The derive sees the field’s type text (PutPort<u32>), not its meaning,
so it names the interface as <PutPort<u32> as PortField>::Iface rather
than parsing generics out of tokens.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".