FlexBasis

Type Alias FlexBasis 

Source
pub type FlexBasis = FlexBasis<Size>;
Expand description

A specified value for the flex-basis property.

Aliased Type§

#[repr(C)]
pub enum FlexBasis { Content, Size(GenericSize<NonNegative<LengthPercentage>>), }

Variants§

§

Content

content

§

Size(GenericSize<NonNegative<LengthPercentage>>)

<width>

Implementations§

Source§

impl FlexBasis

Source

pub fn auto() -> Self

auto

Source

pub fn zero_percent() -> Self

0%

Trait Implementations§

Source§

impl Parse for FlexBasis

Source§

fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>

Parse a value of this type. Read more