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>
impl<S> PositionComponent<S>
pub fn to_length_or_percentage(&self) -> LengthOrPercentage
Trait Implementations
§impl From<VerticalPositionKeyword> for PositionComponent<VerticalPositionKeyword>
impl From<VerticalPositionKeyword> for PositionComponent<VerticalPositionKeyword>
§fn from(
value: VerticalPositionKeyword,
) -> PositionComponent<VerticalPositionKeyword>
fn from( value: VerticalPositionKeyword, ) -> PositionComponent<VerticalPositionKeyword>
Converts to this type from the input type.