From 001a21f250e606864560fff558b33e799bd5fd38 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Wed, 18 May 2022 14:24:21 -0400 Subject: [PATCH] inline --- src/misc.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/misc.rs b/src/misc.rs index e865b54..ea43f57 100644 --- a/src/misc.rs +++ b/src/misc.rs @@ -194,10 +194,13 @@ pub trait EguiHelper { } impl EguiHelper for Vec { + #[inline(always)] fn to_line(self) -> Line { Line::new(Values::from_values(self)) } + #[inline(always)] fn to_points(self) -> Points { Points::new(Values::from_values(self)) } + #[inline(always)] fn to_tuple(self) -> Vec<(f64, f64)> { self.iter().map(|ele| (ele.x, ele.y)).collect() } }