pub struct EdgeInsets {
pub left: f64,
pub top: f64,
pub right: f64,
pub bottom: f64,
}Expand description
Per-edge inset amounts, in logical pixels.
Negative insets clamp to zero; intentional overflow/bleed is a decorated-box concern, not Padding’s.
Fields§
§left: f64Inset from the left edge.
top: f64Inset from the top edge.
right: f64Inset from the right edge.
bottom: f64Inset from the bottom edge.
Implementations§
Trait Implementations§
Source§impl Clone for EdgeInsets
impl Clone for EdgeInsets
impl Copy for EdgeInsets
Source§impl Debug for EdgeInsets
impl Debug for EdgeInsets
Source§impl PartialEq for EdgeInsets
impl PartialEq for EdgeInsets
impl StructuralPartialEq for EdgeInsets
Auto Trait Implementations§
impl Freeze for EdgeInsets
impl RefUnwindSafe for EdgeInsets
impl Send for EdgeInsets
impl Sync for EdgeInsets
impl Unpin for EdgeInsets
impl UnsafeUnpin for EdgeInsets
impl UnwindSafe for EdgeInsets
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.