pub struct Group {
pub children: Vec<DynRenderable>,
}Expand description
A renderable that renders multiple children one after another (vertically).
Equivalent to Python Rich’s Group.
Fields§
§children: Vec<DynRenderable>The child renderables to render in sequence.
Implementations§
Trait Implementations§
Source§impl Renderable for Group
Renders each child sequentially and concatenates their output lines.
impl Renderable for Group
Renders each child sequentially and concatenates their output lines.
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 Group
impl !RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnsafeUnpin for Group
impl !UnwindSafe for Group
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