pub struct GraphicTransition {
pub duration_millis: u16,
}Expand description
A finite transition between compatible paths. Creation paints the endpoint; only a later accepted path replacement supplies a previous geometry.
Fields§
§duration_millis: u16Implementations§
Source§impl GraphicTransition
impl GraphicTransition
pub fn validate(self) -> Result<(), Error>
pub fn compatible(from: &[PathCommand], to: &[PathCommand]) -> bool
Sourcepub fn sample(
from: &[PathCommand],
to: &[PathCommand],
progress: f64,
) -> Result<Vec<PathCommand>, Error>
pub fn sample( from: &[PathCommand], to: &[PathCommand], progress: f64, ) -> Result<Vec<PathCommand>, Error>
One allocation is useful when interrupting a transition, never per paint.
pub fn command( from: PathCommand, to: PathCommand, progress: f64, ) -> Result<PathCommand, Error>
Trait Implementations§
Source§impl Clone for GraphicTransition
impl Clone for GraphicTransition
impl Copy for GraphicTransition
Source§impl Debug for GraphicTransition
impl Debug for GraphicTransition
impl Eq for GraphicTransition
Source§impl PartialEq for GraphicTransition
impl PartialEq for GraphicTransition
impl StructuralPartialEq for GraphicTransition
Auto Trait Implementations§
impl Forget for GraphicTransition
impl Freeze for GraphicTransition
impl Move for GraphicTransition
impl RefUnwindSafe for GraphicTransition
impl Send for GraphicTransition
impl Sync for GraphicTransition
impl Unpin for GraphicTransition
impl UnsafeUnpin for GraphicTransition
impl UnwindSafe for GraphicTransition
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