pub struct Width<T>(pub T)
where
T: Clone + Debug + Display + PartialEq + UnitDataType<Self>;Expand description
Tuple Fields§
§0: TImplementations§
Source§impl Width<WidthValue>
impl Width<WidthValue>
pub fn initial() -> Self
pub fn inherit() -> Self
pub fn revert() -> Self
pub fn revert_layer() -> Self
pub fn unset() -> Self
pub fn auto() -> Self
pub fn fit_content() -> Self
pub fn max_content() -> Self
pub fn min_content() -> Self
Trait Implementations§
Source§impl AbsoluteLengthStorage for Width<WidthValue>
impl AbsoluteLengthStorage for Width<WidthValue>
fn absolute_length(value: AbsoluteLength) -> Selfwhere
Self: Sized,
Source§impl CapHeightStorage for Width<WidthValue>
impl CapHeightStorage for Width<WidthValue>
Source§impl CentimeterStorage for Width<WidthValue>
impl CentimeterStorage for Width<WidthValue>
Source§impl CharSizeStorage for Width<WidthValue>
impl CharSizeStorage for Width<WidthValue>
Source§impl ContainerLengthStorage for Width<WidthValue>
impl ContainerLengthStorage for Width<WidthValue>
fn container_length(value: ContainerLength) -> Selfwhere
Self: Sized,
Source§impl ContainerQueryBlockStorage for Width<WidthValue>
impl ContainerQueryBlockStorage for Width<WidthValue>
Source§impl ContainerQueryMaxStorage for Width<WidthValue>
impl ContainerQueryMaxStorage for Width<WidthValue>
Source§impl ContainerQueryMinStorage for Width<WidthValue>
impl ContainerQueryMinStorage for Width<WidthValue>
Source§impl ContainerQueryWidthStorage for Width<WidthValue>
impl ContainerQueryWidthStorage for Width<WidthValue>
Source§impl Default for Width<WidthValue>
impl Default for Width<WidthValue>
Source§impl DynamicViewportMaxStorage for Width<WidthValue>
impl DynamicViewportMaxStorage for Width<WidthValue>
Source§impl DynamicViewportMinStorage for Width<WidthValue>
impl DynamicViewportMinStorage for Width<WidthValue>
Source§impl EmStorage for Width<WidthValue>
impl EmStorage for Width<WidthValue>
Source§impl ExStorage for Width<WidthValue>
impl ExStorage for Width<WidthValue>
Source§impl FontLengthStorage for Width<WidthValue>
impl FontLengthStorage for Width<WidthValue>
fn font_length(value: FontLength) -> Selfwhere
Self: Sized,
Source§impl<T> From<T> for Width<WidthValue>where
T: Into<LengthPercentage>,
impl<T> From<T> for Width<WidthValue>where
T: Into<LengthPercentage>,
Source§impl IcStorage for Width<WidthValue>
impl IcStorage for Width<WidthValue>
Source§impl InchStorage for Width<WidthValue>
impl InchStorage for Width<WidthValue>
Source§impl LargeViewportBlockStorage for Width<WidthValue>
impl LargeViewportBlockStorage for Width<WidthValue>
Source§impl LargeViewportHeightStorage for Width<WidthValue>
impl LargeViewportHeightStorage for Width<WidthValue>
Source§impl LargeViewportInlineStorage for Width<WidthValue>
impl LargeViewportInlineStorage for Width<WidthValue>
Source§impl LargeViewportMaxStorage for Width<WidthValue>
impl LargeViewportMaxStorage for Width<WidthValue>
Source§impl LargeViewportMinStorage for Width<WidthValue>
impl LargeViewportMinStorage for Width<WidthValue>
Source§impl LargeViewportWidthStorage for Width<WidthValue>
impl LargeViewportWidthStorage for Width<WidthValue>
Source§impl LengthPercentageStorage for Width<WidthValue>
impl LengthPercentageStorage for Width<WidthValue>
fn length_percentage(value: LengthPercentage) -> Selfwhere
Self: Sized,
Source§impl LengthStorage for Width<WidthValue>
impl LengthStorage for Width<WidthValue>
Source§impl LineHeightStorage for Width<WidthValue>
impl LineHeightStorage for Width<WidthValue>
Source§impl MillimeterStorage for Width<WidthValue>
impl MillimeterStorage for Width<WidthValue>
Source§impl PercentageStorage for Width<WidthValue>
impl PercentageStorage for Width<WidthValue>
Source§impl PicaStorage for Width<WidthValue>
impl PicaStorage for Width<WidthValue>
Source§impl PixelStorage for Width<WidthValue>
impl PixelStorage for Width<WidthValue>
Source§impl PointStorage for Width<WidthValue>
impl PointStorage for Width<WidthValue>
Source§impl<T> Property for Width<T>
impl<T> Property for Width<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 Width<T>
impl<T> PropertyName for Width<T>
fn property_name<'a>(&self) -> &'a str
Source§impl QuarterOfMillimeterStorage for Width<WidthValue>
impl QuarterOfMillimeterStorage for Width<WidthValue>
Source§impl RelativeCapHeightStorage for Width<WidthValue>
impl RelativeCapHeightStorage for Width<WidthValue>
Source§impl RelativeCharSizeStorage for Width<WidthValue>
impl RelativeCharSizeStorage for Width<WidthValue>
Source§impl RelativeEmStorage for Width<WidthValue>
impl RelativeEmStorage for Width<WidthValue>
Source§impl RelativeExStorage for Width<WidthValue>
impl RelativeExStorage for Width<WidthValue>
Source§impl RelativeIcStorage for Width<WidthValue>
impl RelativeIcStorage for Width<WidthValue>
Source§impl RelativeLengthStorage for Width<WidthValue>
impl RelativeLengthStorage for Width<WidthValue>
fn relative_length(value: RelativeLength) -> Selfwhere
Self: Sized,
Source§impl RelativeLineHeightStorage for Width<WidthValue>
impl RelativeLineHeightStorage for Width<WidthValue>
Source§impl SmallViewportBlockStorage for Width<WidthValue>
impl SmallViewportBlockStorage for Width<WidthValue>
Source§impl SmallViewportHeightStorage for Width<WidthValue>
impl SmallViewportHeightStorage for Width<WidthValue>
Source§impl SmallViewportInlineStorage for Width<WidthValue>
impl SmallViewportInlineStorage for Width<WidthValue>
Source§impl SmallViewportMaxStorage for Width<WidthValue>
impl SmallViewportMaxStorage for Width<WidthValue>
Source§impl SmallViewportMinStorage for Width<WidthValue>
impl SmallViewportMinStorage for Width<WidthValue>
Source§impl SmallViewportWidthStorage for Width<WidthValue>
impl SmallViewportWidthStorage for Width<WidthValue>
Source§impl ViewportBlockStorage for Width<WidthValue>
impl ViewportBlockStorage for Width<WidthValue>
Source§impl ViewportHeightStorage for Width<WidthValue>
impl ViewportHeightStorage for Width<WidthValue>
Source§impl ViewportInlineStorage for Width<WidthValue>
impl ViewportInlineStorage for Width<WidthValue>
Source§impl ViewportLengthStorage for Width<WidthValue>
impl ViewportLengthStorage for Width<WidthValue>
fn viewport_length(value: ViewportLength) -> Selfwhere
Self: Sized,
Source§impl ViewportMaxStorage for Width<WidthValue>
impl ViewportMaxStorage for Width<WidthValue>
Source§impl ViewportMinStorage for Width<WidthValue>
impl ViewportMinStorage for Width<WidthValue>
Source§impl ViewportWidthStorage for Width<WidthValue>
impl ViewportWidthStorage for Width<WidthValue>
impl<T> StructuralPartialEq for Width<T>
impl UnitDataType<Width<Nothing>> for Nothing
impl<T> UnitDataType<Width<Var<T>>> for Var<T>
impl UnitDataType<Width<WidthValue>> for WidthValue
impl<T> UnitDataTypeContainer<T> for Width<T>
Auto Trait Implementations§
impl<T> Freeze for Width<T>where
T: Freeze,
impl<T> RefUnwindSafe for Width<T>where
T: RefUnwindSafe,
impl<T> Send for Width<T>where
T: Send,
impl<T> Sync for Width<T>where
T: Sync,
impl<T> Unpin for Width<T>where
T: Unpin,
impl<T> UnwindSafe for Width<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