MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / DisplayFunction

Class DisplayFunction

src/debug_utils/display.rs:53–53  ·  view source on GitHub ↗

Wrapper around a type implementing [`Function`] that provides a [`Display`] implementation which dumps the function in a format that is both human-readable and machine-parseable. The returned string can be re-parsed into a function by using [`GenericFunction::parse`] (requires the `parse` cargo feature). [`GenericFunction::parse`]: crate::debug_utils::GenericFunction::parse [`Display`]: core::fm

Source from the content-addressed store, hash-verified

51/// [`GenericFunction::parse`]: crate::debug_utils::GenericFunction::parse
52/// [`Display`]: core::fmt::Display
53pub struct DisplayFunction<'a, F: Function>(pub &'a F);
54
55impl<F: Function> DisplayFunction<'_, F> {
56 /// Displays an operand, expanding value groups to their members.

Callers 1

fmtMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected