pub struct Block<Message = ()> { /* private fields */ }Implementations§
Source§impl<Message> Block<Message>
impl<Message> Block<Message>
pub fn new() -> Self
pub fn bordered() -> Self
pub fn title<T>(self, title: T) -> Self
pub fn title_top<T>(self, title: T) -> Self
pub fn title_bottom<T>(self, title: T) -> Self
pub fn title_alignment(self, alignment: Alignment) -> Self
pub fn title_position(self, position: TitlePosition) -> Self
pub fn bordered_flag(self, bordered: bool) -> Self
pub fn borders(self, borders: Borders) -> Self
pub fn border_type(self, border_type: BorderType) -> Self
pub fn border_set(self, border_set: Set) -> Self
pub fn padding(self, padding: Padding) -> Self
pub fn border_style<S: Into<Style>>(self, style: S) -> Self
pub fn title_style<S: Into<Style>>(self, style: S) -> Self
pub fn child(self, child: Element<Message>) -> Self
pub fn children<I>(self, children: I) -> Selfwhere
I: IntoIterator<Item = Element<Message>>,
pub fn layout(self, layout: Layout) -> Self
pub fn style<S: Into<Style>>(self, style: S) -> Self
pub fn build(self) -> Element<Message>
pub fn inner(&self, rect: Rect) -> Rect
pub fn into_frame(self) -> BlockFrame
Auto Trait Implementations§
impl<Message> Freeze for Block<Message>
impl<Message = ()> !RefUnwindSafe for Block<Message>
impl<Message = ()> !Send for Block<Message>
impl<Message = ()> !Sync for Block<Message>
impl<Message> Unpin for Block<Message>
impl<Message> UnsafeUnpin for Block<Message>
impl<Message = ()> !UnwindSafe for Block<Message>
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