pub enum Padding {
Unset,
Length(u32),
Percent(f32),
}
Expand description
Defines the area to reserve around the element’s content, but inside the border.
Variants§
Unset
No padding.
Length(u32)
Sets an absolute value.
Percent(f32)
Sets a percentage of the width or height of the parent.
Trait Implementations§
Source§impl From<Padding> for LengthPercentage
impl From<Padding> for LengthPercentage
impl Copy 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 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