We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
clap::Error::insert
1 parent 94c774b commit b86dc51Copy full SHA for b86dc51
clap_builder/src/error/mod.rs
@@ -195,6 +195,8 @@ impl<F: ErrorFormatter> Error<F> {
195
}
196
197
/// Insert a piece of context
198
+ ///
199
+ /// If this `ContextKind` is already present, its value is replaced and the old value is returned.
200
#[inline(never)]
201
#[cfg(feature = "error-context")]
202
pub fn insert(&mut self, kind: ContextKind, value: ContextValue) -> Option<ContextValue> {
0 commit comments