pub struct BlockProps {
pub titles: Vec<BlockTitle>,
pub title_alignment: Alignment,
pub title_position: TitlePosition,
pub borders: Borders,
pub border_type: BorderType,
pub border_set: Option<Set>,
pub padding: Padding,
pub border_style: Style,
pub title_style: Style,
}Fields§
§titles: Vec<BlockTitle>§title_alignment: Alignment§title_position: TitlePosition§borders: Borders§border_type: BorderType§border_set: Option<Set>§padding: Padding§border_style: Style§title_style: StyleImplementations§
Source§impl BlockProps
impl BlockProps
pub fn has_title_at_position(&self, position: TitlePosition) -> bool
pub fn inner(&self, rect: Rect) -> Rect
Trait Implementations§
Source§impl Clone for BlockProps
impl Clone for BlockProps
Source§fn clone(&self) -> BlockProps
fn clone(&self) -> BlockProps
Returns a duplicate of the value. Read more
1.0.0 · 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 BlockProps
impl Debug for BlockProps
Source§impl PartialEq for BlockProps
impl PartialEq for BlockProps
impl Eq for BlockProps
impl StructuralPartialEq for BlockProps
Auto Trait Implementations§
impl Freeze for BlockProps
impl RefUnwindSafe for BlockProps
impl Send for BlockProps
impl Sync for BlockProps
impl Unpin for BlockProps
impl UnsafeUnpin for BlockProps
impl UnwindSafe for BlockProps
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