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

Function is_known_directive

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

Is this a directive name the system recognizes? Unknown ⇒ gate error.

(name: &str)

Source from the content-addressed store, hash-verified

183
184/// Is this a directive name the system recognizes? Unknown ⇒ gate error.
185pub fn is_known_directive(name: &str) -> bool {
186 DIRECTIVE_NAMES.contains(&name)
187}
188
189/// The subset of edges a `:::ref` dependency may declare. A `:::ref` names a
190/// *dependency* on the traversable dependency chain, so its `edge=` is

Callers 2

check_knownFunction · 0.85

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected