pub struct BorderDefault { /* private fields */ }Implementations§
Source§impl BorderDefault
impl BorderDefault
pub const fn new( top: CharacterPixel, top_left: CharacterPixel, left: CharacterPixel, bottom_left: CharacterPixel, bottom: CharacterPixel, bottom_right: CharacterPixel, right: CharacterPixel, top_right: CharacterPixel, ) -> BorderDefault
pub const fn top(&self) -> &CharacterPixel
pub const fn top_left(&self) -> &CharacterPixel
pub const fn left(&self) -> &CharacterPixel
pub const fn bottom_left(&self) -> &CharacterPixel
pub const fn bottom(&self) -> &CharacterPixel
pub const fn bottom_right(&self) -> &CharacterPixel
pub const fn right(&self) -> &CharacterPixel
pub const fn top_right(&self) -> &CharacterPixel
Sourcepub fn symmetric(
horizontal: char,
vertical: char,
corner: char,
foreground: TerminalColor,
background: TerminalColor,
) -> Result<Self, String>
pub fn symmetric( horizontal: char, vertical: char, corner: char, foreground: TerminalColor, background: TerminalColor, ) -> Result<Self, String>
§Errors
Returns an error if the passed chars are control characters.
pub fn symmetric_static<const HORIZONTAL: char, const VERTICAL: char, const CORNER: char>( foreground: TerminalColor, background: TerminalColor, ) -> Self
pub fn ascii(foreground: TerminalColor, background: TerminalColor) -> Self
pub fn overdrawn(foreground: TerminalColor, background: TerminalColor) -> Self
Sourcepub fn same_color(
top: char,
top_left: char,
left: char,
bottom_left: char,
bottom: char,
bottom_right: char,
right: char,
top_right: char,
foreground: TerminalColor,
background: TerminalColor,
) -> Result<Self, String>
pub fn same_color( top: char, top_left: char, left: char, bottom_left: char, bottom: char, bottom_right: char, right: char, top_right: char, foreground: TerminalColor, background: TerminalColor, ) -> Result<Self, String>
§Errors
Returns an error if the passed chars are control characters.
pub fn same_color_static<const TOP: char, const TOP_LEFT: char, const LEFT: char, const BOTTOM_LEFT: char, const BOTTOM: char, const BOTTOM_RIGHT: char, const RIGHT: char, const TOP_RIGHT: char>( foreground: TerminalColor, background: TerminalColor, ) -> Self
pub fn single_stroke( foreground: TerminalColor, background: TerminalColor, ) -> Self
pub fn rounded_corners( foreground: TerminalColor, background: TerminalColor, ) -> Self
pub fn double_stroke( foreground: TerminalColor, background: TerminalColor, ) -> Self
pub fn bold_stroke(foreground: TerminalColor, background: TerminalColor) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BorderDefault
impl RefUnwindSafe for BorderDefault
impl Send for BorderDefault
impl Sync for BorderDefault
impl Unpin for BorderDefault
impl UnwindSafe for BorderDefault
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