pub struct Decor {}Expand description
The box outside the object
It include many char for making a box.
But it not include the functions for making box!
As shown in the figure below, the abbreviation is:
l: left, r: right, t: top, b: bottom, e: edge, c: cross
lt te tc rt
┌────────┰────────┓ lt: ┌ rt: ┓
│ ┆ ┃ lb: ╰ rb: ╝
│ ┆sv ┃
│ ┆ ┃ te: ─ re: ┃ sv: ┆
lc├╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌┦rc ┄┄┄┄┄> be: ═ le: │ sh: ╌
│ cross┆ sh ┃
le│ ┆ ┃re tc: ┰ rc: ┦
│ ┆ ┃ bc: ┸ lc: ├ cross: ┼
╰════════┸════════╝
lb bc be rbIn general, you don’t need to manually set up your own. Some useful constructor methods can directly generate specific styles of borders.
Fields§
§lt: charleft top corner
rt: charright top corner
rb: charright top corner
lb: charleft bottom corner
te: chartop edge
re: charright edge
be: charbottom edge
le: charleft edge
tc: chartop cross
rc: charright cross
bc: charbottom cross
lc: charleft cross
cross: charthe cross
sh: charhorizontal segmetation
sv: charvertical segmetation
Implementations§
Auto Trait Implementations§
impl Freeze for Decor
impl RefUnwindSafe for Decor
impl Send for Decor
impl Sync for Decor
impl Unpin for Decor
impl UnwindSafe for Decor
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