pub struct BorderProps<'a> {Show 15 fields
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>>,
pub margin: Margin,
pub offset: Offset,
pub width: Constraint,
pub height: Constraint,
pub gap: i32,
pub flex_direction: Direction,
pub justify_content: Flex,
}Fields§
§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>>§margin: Margin§offset: Offset§width: Constraint§height: Constraint§gap: i32§flex_direction: Direction§justify_content: FlexImplementations§
Source§impl<'a> BorderProps<'a>
impl<'a> BorderProps<'a>
Sourcepub fn layout_style(&self) -> LayoutStyle
pub fn layout_style(&self) -> LayoutStyle
Returns the layout style based on the layout-related fields of this struct.
Trait Implementations§
Source§impl Default for BorderProps<'_>
impl Default for BorderProps<'_>
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