pub struct Columns {
pub renderables: Vec<DynRenderable>,
pub equal: bool,
pub expand: bool,
pub padding: usize,
pub width: Option<usize>,
}Expand description
Renders a set of renderables in side-by-side columns.
Fields§
§renderables: Vec<DynRenderable>§equal: bool§expand: bool§padding: usize§width: Option<usize>Implementations§
Trait Implementations§
Source§impl Renderable for Columns
impl Renderable for Columns
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 Columns
impl !RefUnwindSafe for Columns
impl Send for Columns
impl Sync for Columns
impl Unpin for Columns
impl UnsafeUnpin for Columns
impl !UnwindSafe for Columns
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