#[non_exhaustive]pub struct RenderOptions { /* private fields */ }Expand description
Host-provided layout constraints for rendering a report.
Runemark deliberately does not inspect the terminal size itself. Applications can pass a known width for an interactive terminal or a deterministic width for tests and redirected output.
Implementations§
Source§impl RenderOptions
impl RenderOptions
Sourcepub fn with_width(self, width: usize) -> Self
pub fn with_width(self, width: usize) -> Self
Uses the available terminal width for adaptive report layout.
A width of zero is ignored because no usable terminal layout can be derived from it.
Trait Implementations§
Source§impl Clone for RenderOptions
impl Clone for RenderOptions
impl Copy for RenderOptions
Source§impl Debug for RenderOptions
impl Debug for RenderOptions
Source§impl Default for RenderOptions
impl Default for RenderOptions
impl Eq for RenderOptions
Source§impl PartialEq for RenderOptions
impl PartialEq for RenderOptions
impl StructuralPartialEq for RenderOptions
Auto Trait Implementations§
impl Freeze for RenderOptions
impl RefUnwindSafe for RenderOptions
impl Send for RenderOptions
impl Sync for RenderOptions
impl Unpin for RenderOptions
impl UnsafeUnpin for RenderOptions
impl UnwindSafe for RenderOptions
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