pub struct JsonRender { /* private fields */ }Expand description
Renders a JSON value with syntax highlighting via Renderable.
Implementations§
Trait Implementations§
Source§impl Clone for JsonRender
impl Clone for JsonRender
Source§fn clone(&self) -> JsonRender
fn clone(&self) -> JsonRender
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JsonRender
impl Debug for JsonRender
Source§impl Renderable for JsonRender
impl Renderable for JsonRender
Source§fn render(&self, _options: &ConsoleOptions) -> RenderResult
fn render(&self, _options: &ConsoleOptions) -> RenderResult
Render this object into a
RenderResult using the provided options. Read moreSource§fn measure(&self, _options: &ConsoleOptions) -> Option<Measurement>
fn measure(&self, _options: &ConsoleOptions) -> Option<Measurement>
Optional width-measurement hook (equivalent to
__rich_measure__).
Override to provide min/max width constraints for layout.Auto Trait Implementations§
impl Freeze for JsonRender
impl RefUnwindSafe for JsonRender
impl Send for JsonRender
impl Sync for JsonRender
impl Unpin for JsonRender
impl UnsafeUnpin for JsonRender
impl UnwindSafe for JsonRender
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