Struct tui_nodes::NodeLayout
source · pub struct NodeLayout<'a> {
pub size: (u16, u16),
/* private fields */
}Expand description
Render information for a single node
Fields§
§size: (u16, u16)Implementations§
source§impl<'a> NodeLayout<'a>
impl<'a> NodeLayout<'a>
pub fn new(size: (u16, u16)) -> Self
pub fn with_title(self, title: &'a str) -> Self
pub fn title(&self) -> &str
pub fn with_border_type(self, border: BorderType) -> Self
pub fn border_type(&self) -> BorderType
pub fn with_border_style(self, style: Style) -> Self
pub fn block(&self) -> Block<'_>
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for NodeLayout<'a>
impl<'a> Send for NodeLayout<'a>
impl<'a> Sync for NodeLayout<'a>
impl<'a> Unpin for NodeLayout<'a>
impl<'a> UnwindSafe for NodeLayout<'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