pub struct Insets {
pub top: f32,
pub right: f32,
pub bottom: f32,
pub left: f32,
}Expand description
Insets — padding or margin — per side, in logical pixels.
Fields§
§top: f32The top inset, in logical pixels.
right: f32The right inset, in logical pixels.
bottom: f32The bottom inset, in logical pixels.
left: f32The left inset, in logical pixels.
Implementations§
Trait Implementations§
impl Copy for Insets
Source§impl From<Insets> for InsetsGeometry
impl From<Insets> for InsetsGeometry
Source§fn from(insets: Insets) -> InsetsGeometry
fn from(insets: Insets) -> InsetsGeometry
Converts to this type from the input type.
impl StructuralPartialEq for Insets
Auto Trait Implementations§
impl Freeze for Insets
impl RefUnwindSafe for Insets
impl Send for Insets
impl Sync for Insets
impl Unpin for Insets
impl UnsafeUnpin for Insets
impl UnwindSafe for Insets
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