MCPcopy Index your code
hub / github.com/encounter/objdiff / new

Method new

objdiff-core/src/bindings/diff.rs:23–32  ·  view source on GitHub ↗
(
        left: Option<(&Object, &diff::ObjectDiff)>,
        right: Option<(&Object, &diff::ObjectDiff)>,
        diff_config: &DiffObjConfig,
    )

Source from the content-addressed store, hash-verified

21
22impl DiffResult {
23 pub fn new(
24 left: Option<(&Object, &diff::ObjectDiff)>,
25 right: Option<(&Object, &diff::ObjectDiff)>,
26 diff_config: &DiffObjConfig,
27 ) -> Result<Self> {
28 Ok(Self {
29 left: left.map(|(obj, diff)| DiffObject::new(obj, diff, diff_config)).transpose()?,
30 right: right.map(|(obj, diff)| DiffObject::new(obj, diff, diff_config)).transpose()?,
31 })
32 }
33}
34
35impl DiffObject {

Callers

nothing calls this directly

Calls 9

symbol_flagsFunction · 0.85
write_instruction_partFunction · 0.85
relocation_typeFunction · 0.85
pushMethod · 0.80
getMethod · 0.80
separatorMethod · 0.45
display_instructionMethod · 0.45
reloc_nameMethod · 0.45

Tested by

no test coverage detected