#[non_exhaustive]
pub enum WindowBorder {
None,
Single,
Double,
Rounded,
Solid,
Shadow,
Uniform(WindowBorderChar),
CornersEdges(WindowBorderChar, WindowBorderChar),
CornersHorizontalVertical(WindowBorderChar, WindowBorderChar, WindowBorderChar, WindowBorderChar),
Anal(WindowBorderChar, WindowBorderChar, WindowBorderChar, WindowBorderChar, WindowBorderChar, WindowBorderChar, WindowBorderChar, WindowBorderChar),
}Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No border.
Single
A single line box.
Double
A double line box.
Rounded
Like Single, but with rounded corners (╭, etc).
Solid
Adds a single whitespace cell of padding.
Shadow
A drop shadow effect by blending with the background.
Uniform(WindowBorderChar)
A single character used for the whole border:
aaaaa a a a a aaaaa
CornersEdges(WindowBorderChar, WindowBorderChar)
A tuple (a, b) where a is used for the border’s corners and b for
its edges:
abbba b b b b abbba
CornersHorizontalVertical(WindowBorderChar, WindowBorderChar, WindowBorderChar, WindowBorderChar)
A tuple (a, b, c, d) where a and c are used for the border’s
corners, b for its horizontal edges and d for the vertical ones:
abbbc d d d d cbbba
Anal(WindowBorderChar, WindowBorderChar, WindowBorderChar, WindowBorderChar, WindowBorderChar, WindowBorderChar, WindowBorderChar, WindowBorderChar)
Use this if you’re a control freak and want to specify every single
corner and edge character individually.
The tuple (a, b, c, d, e, f, g, h) specifies every corner and edge
character clockwise:
abbbc h d h d gfffe
Trait Implementations
sourceimpl Clone for WindowBorder
impl Clone for WindowBorder
sourcefn clone(&self) -> WindowBorder
fn clone(&self) -> WindowBorder
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for WindowBorder
impl Debug for WindowBorder
sourceimpl<'de> Deserialize<'de> for WindowBorder
impl<'de> Deserialize<'de> for WindowBorder
sourcefn deserialize<D>(
deserializer: D
) -> Result<WindowBorder, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<WindowBorder, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<A, B, C, D, E, F, G, H> From<(A, B, C, D, E, F, G, H)> for WindowBorderwhere
A: Into<WindowBorderChar>,
B: Into<WindowBorderChar>,
C: Into<WindowBorderChar>,
D: Into<WindowBorderChar>,
E: Into<WindowBorderChar>,
F: Into<WindowBorderChar>,
G: Into<WindowBorderChar>,
H: Into<WindowBorderChar>,
impl<A, B, C, D, E, F, G, H> From<(A, B, C, D, E, F, G, H)> for WindowBorderwhere
A: Into<WindowBorderChar>,
B: Into<WindowBorderChar>,
C: Into<WindowBorderChar>,
D: Into<WindowBorderChar>,
E: Into<WindowBorderChar>,
F: Into<WindowBorderChar>,
G: Into<WindowBorderChar>,
H: Into<WindowBorderChar>,
sourcefn from((A, B, C, D, E, F, G, H)) -> WindowBorder
fn from((A, B, C, D, E, F, G, H)) -> WindowBorder
Converts to this type from the input type.
sourceimpl<A, B, C, D> From<(A, B, C, D)> for WindowBorderwhere
A: Into<WindowBorderChar>,
B: Into<WindowBorderChar>,
C: Into<WindowBorderChar>,
D: Into<WindowBorderChar>,
impl<A, B, C, D> From<(A, B, C, D)> for WindowBorderwhere
A: Into<WindowBorderChar>,
B: Into<WindowBorderChar>,
C: Into<WindowBorderChar>,
D: Into<WindowBorderChar>,
sourcefn from((A, B, C, D)) -> WindowBorder
fn from((A, B, C, D)) -> WindowBorder
Converts to this type from the input type.
sourceimpl<A, B> From<(A, B)> for WindowBorderwhere
A: Into<WindowBorderChar>,
B: Into<WindowBorderChar>,
impl<A, B> From<(A, B)> for WindowBorderwhere
A: Into<WindowBorderChar>,
B: Into<WindowBorderChar>,
sourcefn from((A, B)) -> WindowBorder
fn from((A, B)) -> WindowBorder
Converts to this type from the input type.
sourceimpl<A> From<(A,)> for WindowBorderwhere
A: Into<WindowBorderChar>,
impl<A> From<(A,)> for WindowBorderwhere
A: Into<WindowBorderChar>,
sourcefn from((A,)) -> WindowBorder
fn from((A,)) -> WindowBorder
Converts to this type from the input type.
sourceimpl From<WindowBorder> for Object
impl From<WindowBorder> for Object
sourcefn from(border: WindowBorder) -> Object
fn from(border: WindowBorder) -> Object
Converts to this type from the input type.
sourceimpl Hash for WindowBorder
impl Hash for WindowBorder
sourceimpl PartialEq<WindowBorder> for WindowBorder
impl PartialEq<WindowBorder> for WindowBorder
sourcefn eq(&self, other: &WindowBorder) -> bool
fn eq(&self, other: &WindowBorder) -> bool
impl Eq for WindowBorder
impl StructuralEq for WindowBorder
impl StructuralPartialEq for WindowBorder
Auto Trait Implementations
impl RefUnwindSafe for WindowBorder
impl Send for WindowBorder
impl Sync for WindowBorder
impl Unpin for WindowBorder
impl UnwindSafe for WindowBorder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more