MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / parse_cell_order

Method parse_cell_order

nodedb-sql/src/parser/array_stmt/parse_impl.rs:276–285  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

274 }
275
276 fn parse_cell_order(&mut self) -> Result<ArrayCellOrderAst> {
277 let id = self.expect_ident()?;
278 match id.to_ascii_uppercase().as_str() {
279 "ROW_MAJOR" => Ok(ArrayCellOrderAst::RowMajor),
280 "COL_MAJOR" => Ok(ArrayCellOrderAst::ColMajor),
281 "HILBERT" => Ok(ArrayCellOrderAst::Hilbert),
282 "ZORDER" | "Z_ORDER" => Ok(ArrayCellOrderAst::ZOrder),
283 other => Err(self.err(format!("unknown CELL_ORDER `{other}`"))),
284 }
285 }
286
287 fn parse_tile_order(&mut self) -> Result<ArrayTileOrderAst> {
288 let id = self.expect_ident()?;

Callers 1

parse_createMethod · 0.80

Calls 3

expect_identMethod · 0.80
as_strMethod · 0.45
errMethod · 0.45

Tested by

no test coverage detected