pub struct Padding {
pub renderable: DynRenderable,
pub pad: PaddingDimensions,
pub style: Style,
pub expand: bool,
}Expand description
A renderable that adds padding around its content.
Fields§
§renderable: DynRenderableThe inner renderable.
pad: PaddingDimensionsPadding dimensions.
style: StyleStyle for the padding (space) characters.
expand: boolIf true, expand padding to fill available width.
Implementations§
Trait Implementations§
Source§impl Renderable for Padding
impl Renderable for Padding
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 Padding
impl !RefUnwindSafe for Padding
impl Send for Padding
impl Sync for Padding
impl Unpin for Padding
impl UnsafeUnpin for Padding
impl !UnwindSafe for Padding
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