pub struct Padding {
pub top: f32,
pub right: f32,
pub bottom: f32,
pub left: f32,
}Expand description
A padding of a rectangle.
Fields§
§top: f32The top padding.
right: f32The right padding.
bottom: f32The bottom padding.
left: f32The left padding.
Implementations§
Trait Implementations§
impl Copy for Padding
impl StructuralPartialEq for Padding
Auto Trait Implementations§
impl Freeze for Padding
impl RefUnwindSafe for Padding
impl Send for Padding
impl Sync for Padding
impl Unpin for Padding
impl UnwindSafe for Padding
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