#[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§
Source§impl Clone for WindowBorder
impl Clone for WindowBorder
Source§fn clone(&self) -> WindowBorder
fn clone(&self) -> WindowBorder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WindowBorder
impl Debug for WindowBorder
Source§impl<'de> Deserialize<'de> for WindowBorder
impl<'de> Deserialize<'de> for WindowBorder
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<A: Into<WindowBorderChar>> From<(A,)> for WindowBorder
impl<A: Into<WindowBorderChar>> From<(A,)> for WindowBorder
Source§impl<A: Into<WindowBorderChar>, B: Into<WindowBorderChar>> From<(A, B)> for WindowBorder
impl<A: Into<WindowBorderChar>, B: Into<WindowBorderChar>> From<(A, B)> for WindowBorder
Source§impl<A: Into<WindowBorderChar>, B: Into<WindowBorderChar>, C: Into<WindowBorderChar>, D: Into<WindowBorderChar>> From<(A, B, C, D)> for WindowBorder
impl<A: Into<WindowBorderChar>, B: Into<WindowBorderChar>, C: Into<WindowBorderChar>, D: Into<WindowBorderChar>> From<(A, B, C, D)> for WindowBorder
Source§fn from((A, B, C, D): (A, B, C, D)) -> Self
fn from((A, B, C, D): (A, B, C, D)) -> Self
Converts to this type from the input type.
Source§impl<A: Into<WindowBorderChar>, B: Into<WindowBorderChar>, C: Into<WindowBorderChar>, D: Into<WindowBorderChar>, E: Into<WindowBorderChar>, F: Into<WindowBorderChar>, G: Into<WindowBorderChar>, H: Into<WindowBorderChar>> From<(A, B, C, D, E, F, G, H)> for WindowBorder
impl<A: Into<WindowBorderChar>, B: Into<WindowBorderChar>, C: Into<WindowBorderChar>, D: Into<WindowBorderChar>, E: Into<WindowBorderChar>, F: Into<WindowBorderChar>, G: Into<WindowBorderChar>, H: Into<WindowBorderChar>> From<(A, B, C, D, E, F, G, H)> for WindowBorder
Source§fn from((A, B, C, D, E, F, G, H): (A, B, C, D, E, F, G, H)) -> Self
fn from((A, B, C, D, E, F, G, H): (A, B, C, D, E, F, G, H)) -> Self
Converts to this type from the input type.
Source§impl From<WindowBorder> for Object
impl From<WindowBorder> for Object
Source§fn from(border: WindowBorder) -> Self
fn from(border: WindowBorder) -> Self
Converts to this type from the input type.
Source§impl Hash for WindowBorder
impl Hash for WindowBorder
Source§impl PartialEq for WindowBorder
impl PartialEq for WindowBorder
impl Eq for WindowBorder
impl StructuralPartialEq for WindowBorder
Auto Trait Implementations§
impl Freeze for WindowBorder
impl RefUnwindSafe for WindowBorder
impl Send for WindowBorder
impl Sync for WindowBorder
impl Unpin for WindowBorder
impl UnwindSafe for WindowBorder
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