impl Display for ValueBinding
@@ -7,7 +7,7 @@ use crate::{
scene::node::Node,
utils::log::Log,
};
-use std::fmt::Debug;
+use std::fmt::{Debug, Display, Formatter};
#[derive(Clone, Debug)]
pub enum TrackValue {
@@ -57,6 +57,17 @@ pub enum ValueBinding {
Property(String),
}
+impl Display for ValueBinding {
+ fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
+ match self {
+ ValueBinding::Position => write!(f, "Position"),
+ ValueBinding::Scale => write!(f, "Scale"),
+ ValueBinding::Rotation => write!(f, "Rotation"),
+ ValueBinding::Property(name) => write!(f, "{}", name),
+ }
+ }
+}
+
#[derive(Clone, Debug)]
pub struct BoundValue {
pub binding: ValueBinding,
