pub struct ConfigMap {
pub arch: String,
/* private fields */
}Expand description
2026-09-30: A parsed config map.
Fields§
§arch: String2026-09-30: The circuit arch it produces a shape for (kernels/circuits/<arch>.toml).
Implementations§
Source§impl ConfigMap
impl ConfigMap
Sourcepub fn parse(text: &str) -> Result<Self, ConfigMapError>
pub fn parse(text: &str) -> Result<Self, ConfigMapError>
2026-09-30: Parse a mapping TOML.
Sourcepub fn model_types(&self) -> &[String]
pub fn model_types(&self) -> &[String]
2026-09-30: The top-level model_type values this map serves.
Sourcepub fn serves_engine_model_type(&self, model_type: &str) -> bool
pub fn serves_engine_model_type(&self, model_type: &str) -> bool
2026-09-30: Whether this map’s circuit serves an engine-configured model_type: one of
model_types, or a name the engine’s parser gives such a checkpoint.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConfigMap
impl RefUnwindSafe for ConfigMap
impl Send for ConfigMap
impl Sync for ConfigMap
impl Unpin for ConfigMap
impl UnwindSafe for ConfigMap
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