pub struct Padding<T>(pub T)
where
T: Clone + Debug + Display + PartialEq + UnitDataType<Self>;Expand description
Tuple Fields§
§0: TImplementations§
Trait Implementations§
Source§impl AbsoluteLengthStorage for Padding<PaddingValue>
impl AbsoluteLengthStorage for Padding<PaddingValue>
fn absolute_length(value: AbsoluteLength) -> Selfwhere
Self: Sized,
Source§impl CapHeightStorage for Padding<PaddingValue>
impl CapHeightStorage for Padding<PaddingValue>
Source§impl CentimeterStorage for Padding<PaddingValue>
impl CentimeterStorage for Padding<PaddingValue>
Source§impl CharSizeStorage for Padding<PaddingValue>
impl CharSizeStorage for Padding<PaddingValue>
Source§impl ContainerLengthStorage for Padding<PaddingValue>
impl ContainerLengthStorage for Padding<PaddingValue>
fn container_length(value: ContainerLength) -> Selfwhere
Self: Sized,
Source§impl Default for Padding<PaddingValue>
impl Default for Padding<PaddingValue>
Source§impl EmStorage for Padding<PaddingValue>
impl EmStorage for Padding<PaddingValue>
Source§impl ExStorage for Padding<PaddingValue>
impl ExStorage for Padding<PaddingValue>
Source§impl FontLengthStorage for Padding<PaddingValue>
impl FontLengthStorage for Padding<PaddingValue>
fn font_length(value: FontLength) -> Selfwhere
Self: Sized,
Source§impl<T> From<T> for Padding<PaddingValue>where
T: Into<LengthPercentage>,
impl<T> From<T> for Padding<PaddingValue>where
T: Into<LengthPercentage>,
Source§impl IcStorage for Padding<PaddingValue>
impl IcStorage for Padding<PaddingValue>
Source§impl InchStorage for Padding<PaddingValue>
impl InchStorage for Padding<PaddingValue>
Source§impl LengthPercentageStorage for Padding<PaddingValue>
impl LengthPercentageStorage for Padding<PaddingValue>
fn length_percentage(value: LengthPercentage) -> Selfwhere
Self: Sized,
Source§impl LengthStorage for Padding<PaddingValue>
impl LengthStorage for Padding<PaddingValue>
Source§impl LineHeightStorage for Padding<PaddingValue>
impl LineHeightStorage for Padding<PaddingValue>
Source§impl MillimeterStorage for Padding<PaddingValue>
impl MillimeterStorage for Padding<PaddingValue>
Source§impl PercentageStorage for Padding<PaddingValue>
impl PercentageStorage for Padding<PaddingValue>
Source§impl PicaStorage for Padding<PaddingValue>
impl PicaStorage for Padding<PaddingValue>
Source§impl PixelStorage for Padding<PaddingValue>
impl PixelStorage for Padding<PaddingValue>
Source§impl PointStorage for Padding<PaddingValue>
impl PointStorage for Padding<PaddingValue>
Source§impl<T> Property for Padding<T>
impl<T> Property for Padding<T>
Source§fn declaration(&self) -> String
fn declaration(&self) -> String
Returns the stringified property name with its value
as a CSS declaration to be used within a declaration block. Read more
Source§impl<T> PropertyName for Padding<T>
impl<T> PropertyName for Padding<T>
fn property_name<'a>(&self) -> &'a str
Source§impl RelativeEmStorage for Padding<PaddingValue>
impl RelativeEmStorage for Padding<PaddingValue>
Source§impl RelativeExStorage for Padding<PaddingValue>
impl RelativeExStorage for Padding<PaddingValue>
Source§impl RelativeIcStorage for Padding<PaddingValue>
impl RelativeIcStorage for Padding<PaddingValue>
Source§impl RelativeLengthStorage for Padding<PaddingValue>
impl RelativeLengthStorage for Padding<PaddingValue>
fn relative_length(value: RelativeLength) -> Selfwhere
Self: Sized,
Source§impl ViewportBlockStorage for Padding<PaddingValue>
impl ViewportBlockStorage for Padding<PaddingValue>
Source§impl ViewportHeightStorage for Padding<PaddingValue>
impl ViewportHeightStorage for Padding<PaddingValue>
Source§impl ViewportInlineStorage for Padding<PaddingValue>
impl ViewportInlineStorage for Padding<PaddingValue>
Source§impl ViewportLengthStorage for Padding<PaddingValue>
impl ViewportLengthStorage for Padding<PaddingValue>
fn viewport_length(value: ViewportLength) -> Selfwhere
Self: Sized,
Source§impl ViewportMaxStorage for Padding<PaddingValue>
impl ViewportMaxStorage for Padding<PaddingValue>
Source§impl ViewportMinStorage for Padding<PaddingValue>
impl ViewportMinStorage for Padding<PaddingValue>
Source§impl ViewportWidthStorage for Padding<PaddingValue>
impl ViewportWidthStorage for Padding<PaddingValue>
impl<T> StructuralPartialEq for Padding<T>
impl UnitDataType<Padding<Nothing>> for Nothing
impl UnitDataType<Padding<PaddingValue>> for PaddingValue
impl<T> UnitDataType<Padding<Var<T>>> for Var<T>
impl<T> UnitDataTypeContainer<T> for Padding<T>
Auto Trait Implementations§
impl<T> Freeze for Padding<T>where
T: Freeze,
impl<T> RefUnwindSafe for Padding<T>where
T: RefUnwindSafe,
impl<T> Send for Padding<T>where
T: Send,
impl<T> Sync for Padding<T>where
T: Sync,
impl<T> Unpin for Padding<T>where
T: Unpin,
impl<T> UnwindSafe for Padding<T>where
T: UnwindSafe,
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