Enum nvim_oxi::types::WindowBorder
source · [−]#[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
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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl 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<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
sourceimpl<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
sourcefn 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.
sourceimpl<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
sourcefn 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.
sourceimpl<A: Into<WindowBorderChar>, B: Into<WindowBorderChar>> From<(A, B)> for WindowBorder
impl<A: Into<WindowBorderChar>, B: Into<WindowBorderChar>> From<(A, B)> for WindowBorder
sourceimpl<A: Into<WindowBorderChar>> From<(A,)> for WindowBorder
impl<A: Into<WindowBorderChar>> From<(A,)> for WindowBorder
sourceimpl From<WindowBorder> for Object
impl From<WindowBorder> for Object
sourcefn from(border: WindowBorder) -> Self
fn from(border: WindowBorder) -> Self
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
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &WindowBorder) -> bool
fn ne(&self, other: &WindowBorder) -> bool
This method tests for !=.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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