From 890d852e0544ffbf06ac7eb8c3904dc04a0008cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Mon, 27 Jan 2025 05:01:24 +0100 Subject: [PATCH] Implement `Animation::value` --- core/src/animation.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/animation.rs b/core/src/animation.rs index eae6785e..fe2b29b2 100644 --- a/core/src/animation.rs +++ b/core/src/animation.rs @@ -95,6 +95,11 @@ where { self.raw.animate(f, at) } + + /// Retuns the current state of the [`Animation`]. + pub fn value(&self) -> T { + self.raw.value + } } impl Animation {