#[non_exhaustive]pub struct Inset {
pub left: Option<f32>,
pub top: Option<f32>,
pub right: Option<f32>,
pub bottom: Option<f32>,
}Expand description
Absolute offsets from each edge of the containing block.
Each field is optional; None means “auto” and lets the layout choose.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.left: Option<f32>Offset from the left edge, or None for auto.
top: Option<f32>Offset from the top edge, or None for auto.
right: Option<f32>Offset from the right edge, or None for auto.
bottom: Option<f32>Offset from the bottom edge, or None for auto.
Implementations§
Trait Implementations§
impl Copy for Inset
impl StructuralPartialEq for Inset
Auto Trait Implementations§
impl Freeze for Inset
impl RefUnwindSafe for Inset
impl Send for Inset
impl Sync for Inset
impl Unpin for Inset
impl UnsafeUnpin for Inset
impl UnwindSafe for Inset
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