vizia::style

Type Alias VerticalPosition

pub type VerticalPosition = PositionComponent<VerticalPositionKeyword>;

Aliased Type§

enum VerticalPosition {
    Center,
    Length(LengthOrPercentage),
    Side(VerticalPositionKeyword),
}

Variants§

§

Center

center

§

Length(LengthOrPercentage)

<length-percentage>

§

Side(VerticalPositionKeyword)

<side> <length-percentage>?

Implementations

§

impl<S> PositionComponent<S>

Trait Implementations

§

impl<S> Clone for PositionComponent<S>

§

fn clone(&self) -> PositionComponent<S>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<S> Debug for PositionComponent<S>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<VerticalPositionKeyword> for PositionComponent<VerticalPositionKeyword>

§

fn from( value: VerticalPositionKeyword, ) -> PositionComponent<VerticalPositionKeyword>

Converts to this type from the input type.
§

impl<'i, S> Parse<'i> for PositionComponent<S>
where S: Parse<'i> + Copy + Into<LengthOrPercentage>,

§

fn parse<'t>( input: &mut Parser<'i, 't>, ) -> Result<PositionComponent<S>, ParseError<'i, CustomParseError<'i>>>

§

impl<S> PartialEq for PositionComponent<S>

§

fn eq(&self, other: &PositionComponent<S>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<S> StructuralPartialEq for PositionComponent<S>