Skip to main content

dump_value

Function dump_value 

Source
pub fn dump_value(view: &ViewHandle) -> String
Expand description

A full recursive description of the value a handle holds, as Swift’s own dump writes it.

dynamic_type_name answers “is this the same type Swift builds”; this answers “is it the same value”, which is the only thing that reaches a modifier’s arguments. .accessibilityLabel("Save") and .accessibilityLabel("Delete") produce one type and one rendering, and differ here.

Calling dump rather than reimplementing it means both sides of a comparison are formatted by the same code, so the strings line up exactly. Addresses and dyld-relative context names are normalised out, since those legitimately differ between processes; see normalise_dump.