#[non_exhaustive]pub struct Padding {
pub top: u32,
pub right: u32,
pub bottom: u32,
pub left: u32,
pub color: CanvasColor,
}Expand description
Explicit padding specification.
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.top: u32Top padding in pixels.
right: u32Right padding in pixels.
bottom: u32Bottom padding in pixels.
left: u32Left padding in pixels.
color: CanvasColorPadding color.
Implementations§
Trait Implementations§
impl Copy for Padding
impl Eq 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 UnsafeUnpin 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