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

Method reducer

crates/schema/src/def.rs:353–356  ·  view source on GitHub ↗

Convenience method to look up a reducer, possibly by a string.

(&self, name: &K)

Source from the content-addressed store, hash-verified

351
352 /// Convenience method to look up a reducer, possibly by a string.
353 pub fn reducer<K: ?Sized + Hash + Equivalent<Identifier>>(&self, name: &K) -> Option<&ReducerDef> {
354 // If the string IS a valid identifier, we can just look it up.
355 self.reducers.get(name)
356 }
357
358 /// Convenience method to look up a reducer, possibly by a string, returning its id as well.
359 pub fn reducer_full<K: ?Sized + Hash + Equivalent<Identifier>>(

Callers 15

index.tsFile · 0.45
reducers.tsFile · 0.45
index.tsFile · 0.45
index.tsFile · 0.45
index.tsFile · 0.45
index.tsFile · 0.45
index.tsFile · 0.45
index.tsFile · 0.45
index.tsFile · 0.45
typescript.tsFile · 0.45
typescript.tsFile · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected