pub struct Pane {
pub background: Color,
pub border: Color,
pub border_active: Color,
pub border_type: Option<BorderKind>,
pub border_edges: Edges,
}Expand description
Background and border styling for a single bordered pane. Colours default to
the theme’s global background / terminal default; border_type defers to the
Symbols preset when unset.
Fields§
§background: Color§border: Color§border_active: Color§border_type: Option<BorderKind>§border_edges: EdgesImplementations§
Source§impl Pane
impl Pane
Sourcepub fn border_line(&self, fallback: BorderType) -> Option<BorderType>
pub fn border_line(&self, fallback: BorderType) -> Option<BorderType>
Effective border line: the theme’s border-type when set, otherwise the
given fallback (from the Symbols preset). None means
the border is removed.
Sourcepub fn collapsed_borders(&self, strip: Borders) -> Borders
pub fn collapsed_borders(&self, strip: Borders) -> Borders
Borders for a folded pane: a full-box theme keeps the 3-sided strip; a
divider theme keeps only its own edge so the folded pane connects to its
neighbour instead of floating as a box.
Trait Implementations§
impl Copy for Pane
impl StructuralPartialEq for Pane
Auto Trait Implementations§
impl Freeze for Pane
impl RefUnwindSafe for Pane
impl Send for Pane
impl Sync for Pane
impl Unpin for Pane
impl UnsafeUnpin for Pane
impl UnwindSafe for Pane
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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