pub struct BorderChars {
pub top_left: char,
pub top_right: char,
pub bottom_left: char,
pub bottom_right: char,
pub horizontal: char,
pub vertical: char,
}Expand description
Characters used to draw a border around a rectangle.
This is a render-level type that holds raw characters. Higher-level crates (e.g. ftui-widgets) provide presets.
Fields§
§top_left: charTop-left corner character.
top_right: charTop-right corner character.
bottom_left: charBottom-left corner character.
bottom_right: charBottom-right corner character.
horizontal: charHorizontal line character.
vertical: charVertical line character.
Implementations§
Trait Implementations§
Source§impl Clone for BorderChars
impl Clone for BorderChars
Source§fn clone(&self) -> BorderChars
fn clone(&self) -> BorderChars
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BorderChars
Source§impl Debug for BorderChars
impl Debug for BorderChars
impl Eq for BorderChars
Source§impl PartialEq for BorderChars
impl PartialEq for BorderChars
Source§fn eq(&self, other: &BorderChars) -> bool
fn eq(&self, other: &BorderChars) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BorderChars
Auto Trait Implementations§
impl Freeze for BorderChars
impl RefUnwindSafe for BorderChars
impl Send for BorderChars
impl Sync for BorderChars
impl Unpin for BorderChars
impl UnsafeUnpin for BorderChars
impl UnwindSafe for BorderChars
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