pub struct LayoutDebugger { /* private fields */ }Expand description
Layout debugger that records constraint data and renders diagnostics.
Implementations§
Source§impl LayoutDebugger
impl LayoutDebugger
Sourcepub fn set_enabled(&mut self, enabled: bool)
pub fn set_enabled(&mut self, enabled: bool)
Enable or disable the debugger.
Sourcepub fn record(&mut self, record: LayoutRecord)
pub fn record(&mut self, record: LayoutRecord)
Record a layout computation result.
Sourcepub fn records(&self) -> &[LayoutRecord]
pub fn records(&self) -> &[LayoutRecord]
Get the recorded layout data.
Sourcepub fn render_debug(&self, area: Rect, buf: &mut Buffer)
pub fn render_debug(&self, area: Rect, buf: &mut Buffer)
Render a simple tree view of layout records into the buffer.
Sourcepub fn export_dot(&self) -> String
pub fn export_dot(&self) -> String
Export recorded layout data as Graphviz DOT.
Trait Implementations§
Source§impl Debug for LayoutDebugger
impl Debug for LayoutDebugger
Source§impl Default for LayoutDebugger
impl Default for LayoutDebugger
Source§fn default() -> LayoutDebugger
fn default() -> LayoutDebugger
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LayoutDebugger
impl RefUnwindSafe for LayoutDebugger
impl Send for LayoutDebugger
impl Sync for LayoutDebugger
impl Unpin for LayoutDebugger
impl UnsafeUnpin for LayoutDebugger
impl UnwindSafe for LayoutDebugger
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more