MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / get_table_access

Function get_table_access

modules/module-test/src/lib.rs:76–78  ·  view source on GitHub ↗

false positive

(_: impl Fn(&spacetimedb::Local) -> &Tbl + Copy)

Source from the content-addressed store, hash-verified

74// uses internal apis that should not be used by user code
75#[allow(dead_code)] // false positive
76const fn get_table_access<Tbl: spacetimedb::Table>(_: impl Fn(&spacetimedb::Local) -> &Tbl + Copy) -> TableAccess {
77 <Tbl as spacetimedb::table::TableInternal>::TABLE_ACCESS
78}
79
80// This table was specified as public.
81const _: () = assert!(matches!(get_table_access(test_d::test_d), TableAccess::Public));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…