pub struct Block<'a> {
pub title: &'a str,
pub title_right: Option<&'a str>,
pub borders: BorderStyle,
pub border_color: Color,
pub bg: Option<Color>,
pub style: Style,
pub inner_margin: Rect,
}Fields§
§title: &'a str§title_right: Option<&'a str>§borders: BorderStyle§border_color: Color§bg: Option<Color>§style: Style§inner_margin: RectImplementations§
Source§impl<'a> Block<'a>
impl<'a> Block<'a>
pub fn new(title: &'a str) -> Self
pub fn with_borders(self, borders: BorderStyle) -> Self
pub fn with_border_color(self, color: Color) -> Self
pub fn with_bg(self, bg: Color) -> Self
pub fn with_title_right(self, title: &'a str) -> Self
pub fn with_inner_margin(self, margin: Rect) -> Self
pub fn inner(&self, area: Rect) -> Rect
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Block<'a>
impl<'a> RefUnwindSafe for Block<'a>
impl<'a> Send for Block<'a>
impl<'a> Sync for Block<'a>
impl<'a> Unpin for Block<'a>
impl<'a> UnsafeUnpin for Block<'a>
impl<'a> UnwindSafe for Block<'a>
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