Trait style::values::generics::position::PositionComponent

source ·
pub trait PositionComponent {
    // Required method
    fn is_center(&self) -> bool;
}
Expand description

Implements a method that checks if the position is centered.

Required Methods§

source

fn is_center(&self) -> bool

Returns if the position component is 50% or center. For pixel lengths, it always returns false.

Implementors§