pub enum RenderItem {
Segment(Segment),
Nested(DynRenderable),
}Expand description
A single item in a render result — either a final Segment or a nested
renderable that will be recursively flattened by Console::render().
Equivalent to Python Rich’s RenderResult = Iterable[Union[Segment, RenderableType]].
Variants§
Segment(Segment)
A fully-rendered Segment.
Nested(DynRenderable)
A nested DynRenderable that will be recursively flattened.
Trait Implementations§
Source§impl Clone for RenderItem
impl Clone for RenderItem
Source§fn clone(&self) -> RenderItem
fn clone(&self) -> RenderItem
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 RenderItem
impl Debug for RenderItem
Source§impl From<DynRenderable> for RenderItem
impl From<DynRenderable> for RenderItem
Source§fn from(r: DynRenderable) -> Self
fn from(r: DynRenderable) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RenderItem
impl !RefUnwindSafe for RenderItem
impl Send for RenderItem
impl Sync for RenderItem
impl Unpin for RenderItem
impl UnsafeUnpin for RenderItem
impl !UnwindSafe for RenderItem
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