ProgressList

Struct ProgressList 

Source
pub struct ProgressList<TRES: TimingResolution, PRES: ProgressResolution + Eq> { /* private fields */ }

Implementations§

Source§

impl<TRES: TimingResolution + Clone, PRES: ProgressResolution + Eq> ProgressList<TRES, PRES>

Source

pub fn new(time: TRES, progress: PRES) -> Self

Source

pub fn get_progress(&self) -> PRES

Source

pub fn set_progress(&mut self, new_progress: PRES)

Source

pub fn reverse(&mut self)

Source

pub fn reverse_start(&mut self)

Source

pub fn restart(&mut self)

Source

pub fn max(&mut self)

Source

pub fn set_progress_zero(&mut self)

Source

pub fn get_progress_f32(&self) -> f32

Source

pub fn get_time(&self) -> TRES

Source

pub fn get_time_f32(&self) -> f32

Source

pub fn is_animating(&self) -> bool

Source

pub fn is_reverse(&self) -> bool

Source

pub fn update_progress(&mut self, delta_time: &TRES)

Trait Implementations§

Source§

impl<TRES: Debug + TimingResolution, PRES: Debug + ProgressResolution + Eq> Debug for ProgressList<TRES, PRES>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T, TRES: TimingResolution + Clone, PRES: ProgressResolution + Eq> GetValueByGeneric<T> for ProgressList<TRES, PRES>
where T: Sized + Add<Output = T> + Sub<Output = T> + Mul<f32, Output = T> + Copy,

Source§

fn get_generic_byrangeinclusive( &self, range: RangeInclusive<T>, keyframe: &KeyFrameFunction, ) -> T

Get the value of the keyframe at the given range and keyframe function.

Source§

fn get_generic_byrange(&self, range: Range<T>, keyframe: &KeyFrameFunction) -> T

Source§

impl<TRES: TimingResolution + Clone, PRES: ProgressResolution + Eq> GetValueByRange<f32> for ProgressList<TRES, PRES>

Source§

fn get_value_byrange( &self, range: Range<f32>, keyframe: &KeyFrameFunction, ) -> f32

Source§

fn get_value_byrangeinclusive( &self, range: RangeInclusive<f32>, keyframe: &KeyFrameFunction, ) -> f32

Source§

impl<TRES: TimingResolution + Clone, PRES: ProgressResolution + Eq> GetValueByRange<f64> for ProgressList<TRES, PRES>

Source§

fn get_value_byrange( &self, range: Range<f64>, keyframe: &KeyFrameFunction, ) -> f64

Source§

fn get_value_byrangeinclusive( &self, range: RangeInclusive<f64>, keyframe: &KeyFrameFunction, ) -> f64

Source§

impl<TRES: TimingResolution + Clone, PRES: ProgressResolution + Eq> GetValueByRange<i128> for ProgressList<TRES, PRES>

Source§

impl<TRES: TimingResolution + Clone, PRES: ProgressResolution + Eq> GetValueByRange<i16> for ProgressList<TRES, PRES>

Source§

fn get_value_byrange( &self, range: Range<i16>, keyframe: &KeyFrameFunction, ) -> i16

Source§

fn get_value_byrangeinclusive( &self, range: RangeInclusive<i16>, keyframe: &KeyFrameFunction, ) -> i16

Source§

impl<TRES: TimingResolution + Clone, PRES: ProgressResolution + Eq> GetValueByRange<i32> for ProgressList<TRES, PRES>

Source§

fn get_value_byrange( &self, range: Range<i32>, keyframe: &KeyFrameFunction, ) -> i32

Source§

fn get_value_byrangeinclusive( &self, range: RangeInclusive<i32>, keyframe: &KeyFrameFunction, ) -> i32

Source§

impl<TRES: TimingResolution + Clone, PRES: ProgressResolution + Eq> GetValueByRange<i64> for ProgressList<TRES, PRES>

Source§

fn get_value_byrange( &self, range: Range<i64>, keyframe: &KeyFrameFunction, ) -> i64

Source§

fn get_value_byrangeinclusive( &self, range: RangeInclusive<i64>, keyframe: &KeyFrameFunction, ) -> i64

Source§

impl<TRES: TimingResolution + Clone, PRES: ProgressResolution + Eq> GetValueByRange<i8> for ProgressList<TRES, PRES>

Source§

fn get_value_byrange(&self, range: Range<i8>, keyframe: &KeyFrameFunction) -> i8

Source§

fn get_value_byrangeinclusive( &self, range: RangeInclusive<i8>, keyframe: &KeyFrameFunction, ) -> i8

Source§

impl<TRES: TimingResolution + Clone, PRES: ProgressResolution + Eq> GetValueByRange<u128> for ProgressList<TRES, PRES>

Source§

impl<TRES: TimingResolution + Clone, PRES: ProgressResolution + Eq> GetValueByRange<u16> for ProgressList<TRES, PRES>

Source§

fn get_value_byrange( &self, range: Range<u16>, keyframe: &KeyFrameFunction, ) -> u16

Source§

fn get_value_byrangeinclusive( &self, range: RangeInclusive<u16>, keyframe: &KeyFrameFunction, ) -> u16

Source§

impl<TRES: TimingResolution + Clone, PRES: ProgressResolution + Eq> GetValueByRange<u32> for ProgressList<TRES, PRES>

Source§

fn get_value_byrange( &self, range: Range<u32>, keyframe: &KeyFrameFunction, ) -> u32

Source§

fn get_value_byrangeinclusive( &self, range: RangeInclusive<u32>, keyframe: &KeyFrameFunction, ) -> u32

Source§

impl<TRES: TimingResolution + Clone, PRES: ProgressResolution + Eq> GetValueByRange<u64> for ProgressList<TRES, PRES>

Source§

fn get_value_byrange( &self, range: Range<u64>, keyframe: &KeyFrameFunction, ) -> u64

Source§

fn get_value_byrangeinclusive( &self, range: RangeInclusive<u64>, keyframe: &KeyFrameFunction, ) -> u64

Source§

impl<TRES: TimingResolution + Clone, PRES: ProgressResolution + Eq> GetValueByRange<u8> for ProgressList<TRES, PRES>

Source§

fn get_value_byrange(&self, range: Range<u8>, keyframe: &KeyFrameFunction) -> u8

Source§

fn get_value_byrangeinclusive( &self, range: RangeInclusive<u8>, keyframe: &KeyFrameFunction, ) -> u8

Auto Trait Implementations§

§

impl<TRES, PRES> Freeze for ProgressList<TRES, PRES>
where TRES: Freeze, PRES: Freeze,

§

impl<TRES, PRES> RefUnwindSafe for ProgressList<TRES, PRES>
where TRES: RefUnwindSafe, PRES: RefUnwindSafe,

§

impl<TRES, PRES> Send for ProgressList<TRES, PRES>
where TRES: Send, PRES: Send,

§

impl<TRES, PRES> Sync for ProgressList<TRES, PRES>
where TRES: Sync, PRES: Sync,

§

impl<TRES, PRES> Unpin for ProgressList<TRES, PRES>
where TRES: Unpin, PRES: Unpin,

§

impl<TRES, PRES> UnwindSafe for ProgressList<TRES, PRES>
where TRES: UnwindSafe, PRES: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.