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> Freeze for NodeLayout<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more