pub struct TrackBuilder { /* private fields */ }Expand description
Fluent scheduler with deferred diagnostics and immediate try_* alternatives. The requested cursor is not repeatedly rounded: each boundary is snapped once.
Implementations§
Source§impl TrackBuilder
impl TrackBuilder
Sourcepub fn push(self, scene: impl Scene + 'static) -> Self
pub fn push(self, scene: impl Scene + 'static) -> Self
Appends a finite scene, retaining invalid input for validate().
Sourcepub fn scene<Output: IntoSceneOutput + 'static>(
self,
duration: Duration,
build: impl Fn(&SceneContext<'_>) -> Output + Send + Sync + 'static,
) -> Self
pub fn scene<Output: IntoSceneOutput + 'static>( self, duration: Duration, build: impl Fn(&SceneContext<'_>) -> Output + Send + Sync + 'static, ) -> Self
Appends a finite authoring callback accepting drawables or Result outputs.
Sourcepub fn transition(
self,
effect: impl Transition + 'static,
duration: Duration,
) -> Self
pub fn transition( self, effect: impl Transition + 'static, duration: Duration, ) -> Self
Adds an adjacent transition, retaining invalid input for validate().
Sourcepub fn place(self, start: Time, scene: impl Scene + 'static) -> Self
pub fn place(self, start: Time, scene: impl Scene + 'static) -> Self
Places a scene at absolute ticks, retaining invalid input for validate().
Sourcepub fn gap(self, duration: Duration) -> Self
pub fn gap(self, duration: Duration) -> Self
Advances the cursor, retaining invalid input for validate().
Sourcepub fn try_transition(
self,
effect: impl Transition + 'static,
duration: Duration,
) -> Result<Self>
pub fn try_transition( self, effect: impl Transition + 'static, duration: Duration, ) -> Result<Self>
Immediately checks and applies one adjacent transition.
Sourcepub fn try_place(self, start: Time, scene: impl Scene + 'static) -> Result<Self>
pub fn try_place(self, start: Time, scene: impl Scene + 'static) -> Result<Self>
Immediately checks and places one scene.
Sourcepub fn try_gap(self, duration: Duration) -> Result<Self>
pub fn try_gap(self, duration: Duration) -> Result<Self>
Immediately checks and advances the cursor.
Auto Trait Implementations§
impl !RefUnwindSafe for TrackBuilder
impl !UnwindSafe for TrackBuilder
impl Forget for TrackBuilder
impl Freeze for TrackBuilder
impl Send for TrackBuilder
impl Sync for TrackBuilder
impl Unpin for TrackBuilder
impl UnsafeUnpin for TrackBuilder
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