pub struct BoxShape {
pub at: Pos,
pub size: Size,
pub stroke: Stroke,
pub fill: Option<Glyph>,
}Expand description
A box: a position, a size and a stroke, with a fill as an option.
A complete shape in the sense of Complete and fragment in
docs/model.md: what a library user sees. Its decomposition depends
on size rather than on its kind — a 2×2 box is four corners and nothing else — and below 2
in either dimension it draws nothing at all, per Degenerate arrangements.
Fields§
§at: PosThe box’s top-left corner.
size: SizeThe box’s width and height, in cells.
stroke: StrokeThe stroke every cell this box writes is drawn in.
fill: Option<Glyph>The glyph that fills the interior, or None for no fill at all.
Trait Implementations§
Auto Trait Implementations§
impl Forget for BoxShape
impl Freeze for BoxShape
impl RefUnwindSafe for BoxShape
impl Send for BoxShape
impl Sync for BoxShape
impl Unpin for BoxShape
impl UnsafeUnpin for BoxShape
impl UnwindSafe for BoxShape
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