auto

Function auto 

Source
pub const fn auto() -> Length
Expand description

Returns a Length representing an automatic length.

The auto length is often used in layout calculations where the length should be determined by the layout context itself rather than being explicitly set. This is commonly used in CSS for properties like width, height, margin, padding, etc., where auto can be used to instruct the layout engine to calculate the size based on other factors like the size of the container or the intrinsic size of the content.

ยงReturns

A Length variant set to Auto.