pub struct Insets {
pub top: f32,
pub right: f32,
pub bottom: f32,
pub left: f32,
}Expand description
Distances from each edge, used for padding.
Fields§
§top: f32Top inset in logical pixels.
right: f32Right inset in logical pixels.
bottom: f32Bottom inset in logical pixels.
left: f32Left inset in logical pixels.
Implementations§
Trait Implementations§
impl Copy for Insets
Source§impl FromLive for Insets
Available on crate feature live only.16.0, (8.0, 12.0) or an Insets already made, in the playground’s interpreter.
impl FromLive for Insets
Available on crate feature
live only.16.0, (8.0, 12.0) or an Insets already made, in the playground’s interpreter.
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§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe 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