pub struct BorderProps<'a> {
pub offset: Offset,
pub width: Constraint,
pub height: Constraint,
pub padding: Padding,
pub border_style: Style,
pub borders: Borders,
pub border_set: Set,
pub style: Style,
pub children: Vec<AnyElement<'a>>,
pub top_title: Option<Line<'static>>,
pub bottom_title: Option<Line<'static>>,
}Fields§
§offset: Offset§width: Constraint§height: Constraint§padding: Padding§border_style: Style§borders: Borders§border_set: Set§style: Style§children: Vec<AnyElement<'a>>§top_title: Option<Line<'static>>§bottom_title: Option<Line<'static>>Trait Implementations§
Source§impl Default for BorderProps<'_>
impl Default for BorderProps<'_>
Source§impl From<&BorderProps<'_>> for LayoutStyle
impl From<&BorderProps<'_>> for LayoutStyle
Source§fn from(props: &BorderProps<'_>) -> Self
fn from(props: &BorderProps<'_>) -> Self
Converts to this type from the input type.
impl<'a> Props for BorderProps<'a>
Auto Trait Implementations§
impl<'a> Freeze for BorderProps<'a>
impl<'a> !RefUnwindSafe for BorderProps<'a>
impl<'a> Send for BorderProps<'a>
impl<'a> Sync for BorderProps<'a>
impl<'a> Unpin for BorderProps<'a>
impl<'a> !UnwindSafe for BorderProps<'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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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