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

Method add

atomic-cli/src/output/table.rs:549–552  ·  view source on GitHub ↗

Add a key-value pair.

(mut self, key: K, value: V)

Source from the content-addressed store, hash-verified

547
548 /// Add a key-value pair.
549 pub fn add<K: Into<String>, V: Into<String>>(mut self, key: K, value: V) -> Self {
550 self.entries.push((key.into(), value.into()));
551 self
552 }
553
554 /// Set the separator between keys and values.
555 pub fn separator<S: Into<String>>(mut self, sep: S) -> Self {

Calls 1

pushMethod · 0.45