pub struct Padding {
pub trbl: [LengthPercentage; 4],
}Expand description
Argument to Css::padding. Built via impl From for common
shapes:
| Source | CSS shorthand |
|---|---|
Length / Percentage / LengthPercentage | <v> |
(t_b, l_r) | <t_b> <l_r> |
(t, r_l, b) | <t> <r_l> <b> |
(t, r, b, l) | <t> <r> <b> <l> |
Fields§
§trbl: [LengthPercentage; 4]Top, right, bottom, left — already expanded to all four sides.
Trait Implementations§
Source§impl<A, B, C, D> From<(A, B, C, D)> for Paddingwhere
A: Into<LengthPercentage>,
B: Into<LengthPercentage>,
C: Into<LengthPercentage>,
D: Into<LengthPercentage>,
impl<A, B, C, D> From<(A, B, C, D)> for Paddingwhere
A: Into<LengthPercentage>,
B: Into<LengthPercentage>,
C: Into<LengthPercentage>,
D: Into<LengthPercentage>,
Source§fn from((t, r, b, l): (A, B, C, D)) -> Self
fn from((t, r, b, l): (A, B, C, D)) -> Self
Converts to this type from the input type.
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