pub struct Rule { /* private fields */ }Expand description
A rule across the whole width, drawn with ─, or - for
BoxChars::Ascii.
A title sits at the left:
── Title ──────────────A rule fills any width it is given. It measures 1 cell wide without a title. With one it measures the 4-cell margin plus the title.
The title counts as one cell at the narrowest, since a title that does not
fit ends in …. At the widest it counts as its widest line. Only the first
non-empty line of a multi-line title is drawn.
Implementations§
Trait Implementations§
Source§impl Renderable for Rule
impl Renderable for Rule
Auto Trait Implementations§
impl Forget for Rule
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
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