pub struct MdBox {
pub margin: [i16; 4],
pub padding: [i16; 4],
pub border: [u8; 4],
pub border_color: [u32; 4],
pub bg: u32,
pub mset: u8,
pub depth: u8,
pub node: MdNode,
}Expand description
a box of CSS around blocks: what a block element’s style gives (MdBlock::boxes); lengths in px at 100 % text, the sides top, right, bottom, left
Fields§
§margin: [i16; 4]§padding: [i16; 4]§border: [u8; 4]the borders’ widths (a style none: 0; every visible style is drawn solid) and colours (0xAARRGGBB; 0: the text’s)
border_color: [u32; 4]§bg: u32the background (0: none)
mset: u8the margins CSS gave (bit 1 << side): at the top and bottom they take the place of the gap between blocks
depth: u8the block quotes and lists around its element (its place among their indents)
node: MdNodeits element
Trait Implementations§
impl Eq for MdBox
impl StructuralPartialEq for MdBox
Auto Trait Implementations§
impl Forget for MdBox
impl Freeze for MdBox
impl RefUnwindSafe for MdBox
impl Send for MdBox
impl Sync for MdBox
impl Unpin for MdBox
impl UnsafeUnpin for MdBox
impl UnwindSafe for MdBox
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