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