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

Method new

atomic-core/src/pristine/capability.rs:57–62  ·  view source on GitHub ↗

Define a repository capability supported by this build.

(id: &'static str, minimum_version: u32)

Source from the content-addressed store, hash-verified

55impl RepositoryCapability {
56 /// Define a repository capability supported by this build.
57 pub const fn new(id: &'static str, minimum_version: u32) -> Self {
58 Self {
59 id,
60 minimum_version,
61 }
62 }
63
64 /// Stable capability identifier stored in pristine metadata.
65 pub const fn id(self) -> &'static str {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected