pub struct MotionPath {
pub path: Path,
pub distance: Animated<f32>,
}Expand description
A path and how far along it a position is.
Fields§
§path: PathThe path, in the position’s own space: one subpath of 2 to
MAX_MOTION_PATH_VERTICES vertices.
distance: Animated<f32>The fraction of the path’s length travelled, measured as it shows on screen. Clamped to
0..=1 on an open path; on a closed one it wraps, so 1.25 is a quarter of the way
round again.
Trait Implementations§
Source§impl Clone for MotionPath
impl Clone for MotionPath
Source§impl Debug for MotionPath
impl Debug for MotionPath
Source§impl<'de> Deserialize<'de> for MotionPath
impl<'de> Deserialize<'de> for MotionPath
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
Source§impl PartialEq for MotionPath
impl PartialEq for MotionPath
Source§impl Serialize for MotionPath
impl Serialize for MotionPath
impl StructuralPartialEq for MotionPath
Auto Trait Implementations§
impl Forget for MotionPath
impl Freeze for MotionPathwhere
*const u8 is !null: Freeze,
PhantomData<Subpath>: Freeze,
PhantomData<Keyframe<f32>>: Freeze,
PhantomData<Animated<f32>>: Freeze,
*const DataBinding is !null: Freeze,
PhantomData<DataBinding>: Freeze,
impl Move for MotionPath
impl RefUnwindSafe for MotionPath
impl Send for MotionPath
impl Sync for MotionPath
impl Unpin for MotionPath
impl UnsafeUnpin for MotionPathwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Subpath>: UnsafeUnpin,
PhantomData<Keyframe<f32>>: UnsafeUnpin,
PhantomData<Animated<f32>>: UnsafeUnpin,
*const DataBinding is !null: UnsafeUnpin,
PhantomData<DataBinding>: UnsafeUnpin,
impl UnwindSafe for MotionPath
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