MCPcopy Create free account
hub / github.com/agenticsorg/lean-agentic / new

Method new

runtime/src/capabilities.rs:86–91  ·  view source on GitHub ↗
(data: T)

Source from the content-addressed store, hash-verified

84 /// Create new capability-tracked data
85 #[inline]
86 pub fn new(data: T) -> Self {
87 Self {
88 data,
89 _cap: PhantomData,
90 }
91 }
92
93 /// Get immutable reference to data
94 #[inline]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected