pub struct ScopeRenderable { /* private fields */ }Expand description
A renderable scope display.
Renders variable names and their values in a styled table within a panel.
Implementations§
Source§impl ScopeRenderable
impl ScopeRenderable
Sourcepub fn with_title(self, title: impl Into<String>) -> Self
pub fn with_title(self, title: impl Into<String>) -> Self
Set the title.
Sourcepub fn with_sort_keys(self, sort: bool) -> Self
pub fn with_sort_keys(self, sort: bool) -> Self
Set whether to sort keys.
Sourcepub fn with_indent_guides(self, guides: bool) -> Self
pub fn with_indent_guides(self, guides: bool) -> Self
Set whether to show indent guides.
Sourcepub fn with_max_length(self, max: Option<usize>) -> Self
pub fn with_max_length(self, max: Option<usize>) -> Self
Set maximum container length.
Sourcepub fn with_max_string(self, max: Option<usize>) -> Self
pub fn with_max_string(self, max: Option<usize>) -> Self
Set maximum string length.
Sourcepub fn with_overflow(self, overflow: OverflowMethod) -> Self
pub fn with_overflow(self, overflow: OverflowMethod) -> Self
Set overflow method for long values.
Sourcepub fn with_max_depth(self, max_depth: usize) -> Self
pub fn with_max_depth(self, max_depth: usize) -> Self
Set maximum depth for nested value display.
Trait Implementations§
Source§impl Debug for ScopeRenderable
impl Debug for ScopeRenderable
Source§impl Renderable for ScopeRenderable
impl Renderable for ScopeRenderable
Source§fn render(
&self,
console: &Console<Stdout>,
options: &ConsoleOptions,
) -> Segments
fn render( &self, console: &Console<Stdout>, options: &ConsoleOptions, ) -> Segments
Render this object to a sequence of segments.
Source§fn measure(
&self,
console: &Console<Stdout>,
options: &ConsoleOptions,
) -> Measurement
fn measure( &self, console: &Console<Stdout>, options: &ConsoleOptions, ) -> Measurement
Measure the minimum and maximum width requirements. Read more
Auto Trait Implementations§
impl Freeze for ScopeRenderable
impl RefUnwindSafe for ScopeRenderable
impl Send for ScopeRenderable
impl Sync for ScopeRenderable
impl Unpin for ScopeRenderable
impl UnwindSafe for ScopeRenderable
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