MCPcopy Index your code
hub / github.com/assert-rs/assert_cmd / append_context

Method append_context

src/assert.rs:131–137  ·  view source on GitHub ↗
(mut self, name: &'static str, context: D)

Source from the content-addressed store, hash-verified

129 /// ```
130 #[must_use]
131 pub fn append_context<D>(mut self, name: &'static str, context: D) -> Self
132 where
133 D: fmt::Display + Send + Sync + 'static,
134 {
135 self.context.push((name, Box::new(context)));
136 self
137 }
138
139 /// Access the contained [`Output`].
140 ///

Callers 3

assertMethod · 0.80
assertMethod · 0.80
append_context_exampleFunction · 0.80

Calls

no outgoing calls

Tested by 1

append_context_exampleFunction · 0.64