Skip to main content

Module pretty

Module pretty 

Source
Expand description

Pretty-printing widget for Rust values.

Renders a value’s Debug representation with optional wrapping and configurable formatting into a Frame.

§Example

use ftui_widgets::pretty::Pretty;

let data = vec![1, 2, 3];
let widget = Pretty::new(&data);
assert!(!widget.formatted_text().is_empty());

Structs§

Pretty
Pretty-printing widget that renders a Debug representation.