pub struct CostTable {
pub key: TableKey,
/* private fields */
}Expand description
2026-10-04: A parsed, validated cost table.
Fields§
§key: TableKeyImplementations§
Source§impl CostTable
impl CostTable
Sourcepub fn parse(text: &str) -> Result<Self, String>
pub fn parse(text: &str) -> Result<Self, String>
2026-10-04: Parses a table file’s text and validates it: schema SCHEMA, at least
one width, every listed width measured at every depth 0..=max_k, no duplicate cell,
every cost finite and positive (a draft cost of exactly 0 is required at k = 0).
Trait Implementations§
impl StructuralPartialEq for CostTable
Auto Trait Implementations§
impl Freeze for CostTable
impl RefUnwindSafe for CostTable
impl Send for CostTable
impl Sync for CostTable
impl Unpin for CostTable
impl UnwindSafe for CostTable
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