MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / merge_option_replace

Function merge_option_replace

crates/opencode-config/src/schema.rs:677–681  ·  view source on GitHub ↗
(target: &mut Option<T>, source: Option<T>)

Source from the content-addressed store, hash-verified

675}
676
677fn merge_option_replace<T>(target: &mut Option<T>, source: Option<T>) {
678 if let Some(value) = source {
679 *target = Some(value);
680 }
681}
682
683fn merge_option_deep<T: DeepMerge>(target: &mut Option<T>, source: Option<T>) {
684 if let Some(source_value) = source {

Callers 2

deep_mergeMethod · 0.85
mergeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected