MCPcopy Create free account
hub / github.com/encounter/objdiff / from

Method from

objdiff-core/src/diff/display.rs:357–365  ·  view source on GitHub ↗
(value: &DiffText<'_>)

Source from the content-addressed store, hash-verified

355
356impl From<&DiffText<'_>> for HighlightKind {
357 fn from(value: &DiffText<'_>) -> Self {
358 match value {
359 DiffText::Opcode(_, op) => HighlightKind::Opcode(*op),
360 DiffText::Argument(arg) => HighlightKind::Argument(arg.to_static()),
361 DiffText::Symbol(sym) => HighlightKind::Symbol(sym.name.to_string()),
362 DiffText::Address(addr) | DiffText::BranchDest(addr) => HighlightKind::Address(*addr),
363 _ => HighlightKind::None,
364 }
365 }
366}
367
368pub enum ContextItem {

Callers

nothing calls this directly

Calls 2

SymbolClass · 0.85
to_staticMethod · 0.80

Tested by

no test coverage detected