pub struct Margin {
pub top: f32,
pub bottom: f32,
pub left: f32,
pub right: f32,
}Expand description
Padding (or outer spacing) on the four sides of a region.
Values are in logical pixels. Negative values are allowed (useful for overlap effects); backends that don’t support them clamp.
Fields§
§top: f32Top edge.
bottom: f32Bottom edge.
left: f32Left edge.
right: f32Right edge.
Implementations§
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> AppLifecycle for Twhere
T: ?Sized,
impl<T> AppLifecycle for Twhere
T: ?Sized,
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