pub struct CustomChars {
pub top_left: String,
pub top: String,
pub top_right: String,
pub right: String,
pub bottom_right: String,
pub bottom: String,
pub bottom_left: String,
pub left: String,
}Expand description
Owned strings for a BorderStyle::Custom box — input to BoxChars::from_custom.
Keeping the fields in a struct avoids the 8-argument clippy lint and makes call sites self-documenting.
Fields§
§top_left: String§top: String§top_right: String§right: String§bottom_right: String§bottom: String§bottom_left: String§left: StringAuto Trait Implementations§
impl Freeze for CustomChars
impl RefUnwindSafe for CustomChars
impl Send for CustomChars
impl Sync for CustomChars
impl Unpin for CustomChars
impl UnsafeUnpin for CustomChars
impl UnwindSafe for CustomChars
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