MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / is_known_memory_kind

Function is_known_memory_kind

atomic-canonical/src/vocab.rs:265–267  ·  view source on GitHub ↗

Is this a valid memory kind? Unknown ⇒ gate error (closed vocabulary).

(value: &str)

Source from the content-addressed store, hash-verified

263
264/// Is this a valid memory kind? Unknown ⇒ gate error (closed vocabulary).
265pub fn is_known_memory_kind(value: &str) -> bool {
266 MEMORY_KIND.contains(&value)
267}
268
269/// Is this a valid memory status value? Unknown ⇒ gate error.
270pub fn is_known_memory_status(value: &str) -> bool {

Callers 1

validate_memoryFunction · 0.85

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected