Merge fix

This commit is contained in:
Emil Ernerfeldt 2022-10-02 08:48:37 +02:00
parent e3f3410e1a
commit c3dd6dbe89

View file

@ -79,6 +79,13 @@ struct AxisBools {
y: bool,
}
impl AxisBools {
#[inline]
pub fn any(&self) -> bool {
self.x || self.y
}
}
impl From<bool> for AxisBools {
fn from(val: bool) -> Self {
AxisBools { x: val, y: val }