MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / try_table

Function try_table

flow-rs/src/config/table.rs:39–44  ·  view source on GitHub ↗
(value: Value)

Source from the content-addressed store, hash-verified

37}
38
39fn try_table(value: Value) -> Result<Table, Value> {
40 match value {
41 Value::Table(table) => Ok(table),
42 _ => Err(value),
43 }
44}
45
46#[cfg(test)]
47mod test {

Callers 1

merge_tableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected