pub trait LayerState: Send + Sync {
// Required methods
fn as_any(&self) -> &dyn Any;
fn as_any_mut(&mut self) -> &mut dyn Any;
}Expand description
2026-09-25: One layer’s per-sequence state, reached through as_any downcasts.
Implementors here: EmptyLayerState, AttnLayerState and SsmLayerState.