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.
2 parents 94c774b + b86dc51 commit fdbbf66Copy full SHA for fdbbf66
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