From 8c2f27866a2fc682ebe1396c9b8c399efa3feb8e Mon Sep 17 00:00:00 2001 From: Multirious Date: Sun, 14 Jul 2024 21:50:59 +0700 Subject: [PATCH] Rename SetWithExt to TargetSetExt --- src/builder.rs | 2 +- src/builder/tween.rs | 8 ++++---- src/lib.rs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/builder.rs b/src/builder.rs index 901e5f8..02b49ea 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -11,7 +11,7 @@ mod time; pub use time::{backward, forward, go, parallel, sequence, Parallel, Sequence}; mod tween; -pub use tween::{SetWithExt, TargetSetter, TargetSetterState}; +pub use tween::{TargetSetExt, TargetSetter, TargetSetterState}; mod event; pub use event::{event, event_at, event_exact, event_for}; diff --git a/src/builder/tween.rs b/src/builder/tween.rs index 91c2779..db32d1a 100644 --- a/src/builder/tween.rs +++ b/src/builder/tween.rs @@ -7,11 +7,11 @@ use crate::{curve::AToB, set::Set}; use super::{AnimationCommands, BuildAnimation}; -pub trait SetWithExt: Sized { +pub trait TargetSetExt: Sized { fn set(&self, setter: S) -> TargetSetter; } -impl SetWithExt for crate::targets::TargetComponent { +impl TargetSetExt for crate::targets::TargetComponent { fn set(&self, setter: S) -> TargetSetter { TargetSetter { target: self.clone(), @@ -19,7 +19,7 @@ impl SetWithExt for crate::targets::TargetComponent { } } } -impl SetWithExt for crate::targets::TargetAsset { +impl TargetSetExt for crate::targets::TargetAsset { fn set(&self, setter: S) -> TargetSetter { TargetSetter { target: self.clone(), @@ -27,7 +27,7 @@ impl SetWithExt for crate::targets::TargetAsset { } } } -impl SetWithExt for crate::targets::TargetResource { +impl TargetSetExt for crate::targets::TargetResource { fn set(&self, setter: S) -> TargetSetter { TargetSetter { target: self.clone(), diff --git a/src/lib.rs b/src/lib.rs index e75e6b0..458d1ab 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -395,7 +395,7 @@ pub mod prelude { pub use crate::bevy_time_runner::{Repeat, RepeatStyle, TimeDirection}; - pub use crate::builder::{AnimationBuilderExt, SetWithExt as _}; + pub use crate::builder::{AnimationBuilderExt, TargetSetExt as _}; pub use crate::targets::IntoTarget; pub use crate::tween_event::{TweenEvent, TweenEventData};