pub struct StorageTypeEntry {
pub concrete_type_name: &'static str,
pub role_runtime: &'static str,
pub port: &'static str,
pub type_node_fn: fn() -> &'static TypeNode,
}Expand description
Per-concrete Storage-type entry registered by #[derive(bb::<Role>)].
Keyed on the triple (concrete_type_name, role_runtime, port).
type_node_fn returns the Storage::TYPE static for the
concrete’s associated type at that port.
Fields§
§concrete_type_name: &'static strConcreteComponent::TYPE_NAME — the join key against
ConcreteComponentRegistration.
role_runtime: &'static strEngine-side runtime trait name ("IndexRuntime", etc.).
port: &'static strPort name: "vector", "element", "tensor", "sample",
"in", or "out".
type_node_fn: fn() -> &'static TypeNodeReturns the &'static TypeNode for the role’s Storage-bound
associated type at this port. The derive captures the
monomorphized path at emit time.
Trait Implementations§
impl Collect for StorageTypeEntry
Auto Trait Implementations§
impl Freeze for StorageTypeEntry
impl RefUnwindSafe for StorageTypeEntry
impl Send for StorageTypeEntry
impl Sync for StorageTypeEntry
impl Unpin for StorageTypeEntry
impl UnsafeUnpin for StorageTypeEntry
impl UnwindSafe for StorageTypeEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more