diff --git a/crates/egui/src/widgets/plot/mod.rs b/crates/egui/src/widgets/plot/mod.rs index a517db1e..86faad9a 100644 --- a/crates/egui/src/widgets/plot/mod.rs +++ b/crates/egui/src/widgets/plot/mod.rs @@ -79,6 +79,13 @@ struct AxisBools { y: bool, } +impl AxisBools { + #[inline] + pub fn any(&self) -> bool { + self.x || self.y + } +} + impl From for AxisBools { fn from(val: bool) -> Self { AxisBools { x: val, y: val }