pub struct Steps {
pub count: u32,
pub position: StepPosition,
}Expand description
A staircase of equal steps, as CSS steps().
Fields§
§count: u32How many steps: 1 to MAX_EASING_STEPS, and at least 2 where position is none.
position: StepPositionWhere the curve rises.
Implementations§
Source§impl Steps
impl Steps
Sourcepub const fn index(self, elapsed: i128, length: i128) -> i128
pub const fn index(self, elapsed: i128, length: i128) -> i128
The step that elapsed of length falls on, from 0. Both are in the same unit and
length is positive; with whole ticks a step starts on the first tick at or after its
exact time.
Trait Implementations§
impl Copy for Steps
Source§impl<'de> Deserialize<'de> for Steps
impl<'de> Deserialize<'de> for Steps
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Steps
impl StructuralPartialEq for Steps
Auto Trait Implementations§
impl Forget for Steps
impl Freeze for Steps
impl Move for Steps
impl RefUnwindSafe for Steps
impl Send for Steps
impl Sync for Steps
impl Unpin for Steps
impl UnsafeUnpin for Steps
impl UnwindSafe for Steps
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