#[repr(transparent)]pub struct Looper<T: ?Sized>(pub T);
Expand description
Tuple Fields§
§0: T
Implementations§
Trait Implementations§
source§impl<T: PartialEq + ?Sized> PartialEq for Looper<T>
impl<T: PartialEq + ?Sized> PartialEq for Looper<T>
source§impl<T: PartialOrd + ?Sized> PartialOrd for Looper<T>
impl<T: PartialOrd + ?Sized> PartialOrd for Looper<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<Value, T> Tween<Value> for Looper<T>where
Value: TweenValue,
T: Tween<Value>,
impl<Value, T> Tween<Value> for Looper<T>where
Value: TweenValue,
T: Tween<Value>,
source§fn tween(&mut self, value_delta: Value, percent: f32) -> Value
fn tween(&mut self, value_delta: Value, percent: f32) -> Value
Returns a new value based on the value_delta and the percent. Read more
source§fn is_finite(&self) -> bool
fn is_finite(&self) -> bool
All Tweens in this library use this default method, except Looper and Oscillator, which
which are both unbounded (because they never stop returning values), and Extrapolator,
which simply unbounds tweens. Read more
impl<T: Copy + ?Sized> Copy for Looper<T>
impl<T: Eq + ?Sized> Eq for Looper<T>
impl<T: ?Sized> StructuralPartialEq for Looper<T>
Auto Trait Implementations§
impl<T> Freeze for Looper<T>
impl<T> RefUnwindSafe for Looper<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for Looper<T>
impl<T> Sync for Looper<T>
impl<T> Unpin for Looper<T>
impl<T> UnwindSafe for Looper<T>where
T: UnwindSafe + ?Sized,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more