pub struct Margin {
pub block_start: f32,
pub block_end: f32,
pub inline_start: f32,
pub inline_end: f32,
}Expand description
A box’s four margins, named by axis so they follow the writing direction rather than the screen.
The nine builders this replaces mixed two vocabularies — seven physical, two logical — and nothing in the
name of margin_left said which of the two it belonged to.
Fields§
§block_start: f32§block_end: f32§inline_start: f32§inline_end: f32Implementations§
Trait Implementations§
impl Copy for Margin
impl StructuralPartialEq for Margin
Auto Trait Implementations§
impl Freeze for Margin
impl RefUnwindSafe for Margin
impl Send for Margin
impl Sync for Margin
impl Unpin for Margin
impl UnsafeUnpin for Margin
impl UnwindSafe for Margin
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