pub struct WithDuration<Content> { /* private fields */ }Expand description
A scene with an explicit finite authoring duration.
Trait Implementations§
Source§impl<Content: Scene> Scene for WithDuration<Content>
impl<Content: Scene> Scene for WithDuration<Content>
Source§fn validate(&self) -> Result<()>
fn validate(&self) -> Result<()>
Validates deferred authoring errors without evaluating a frame.
Source§fn render(&self, context: &SceneContext<'_>) -> Node
fn render(&self, context: &SceneContext<'_>) -> Node
Builds one snapshot without retaining previous-frame state.
Source§fn duration(&self) -> Option<Duration>
fn duration(&self) -> Option<Duration>
Natural finite duration, or None when a caller must provide one.
Source§fn with_duration(self, duration: Duration) -> WithDuration<Self>where
Self: Sized,
fn with_duration(self, duration: Duration) -> WithDuration<Self>where
Self: Sized,
Overrides clip metadata without retiming or clamping the callback. Read more
Auto Trait Implementations§
impl<Content> Forget for WithDuration<Content>
impl<Content> Freeze for WithDuration<Content>where
Content: Freeze,
impl<Content> Move for WithDuration<Content>
impl<Content> RefUnwindSafe for WithDuration<Content>where
Content: RefUnwindSafe,
impl<Content> Send for WithDuration<Content>where
Content: Send,
impl<Content> Sync for WithDuration<Content>where
Content: Sync,
impl<Content> Unpin for WithDuration<Content>where
Content: Unpin,
impl<Content> UnsafeUnpin for WithDuration<Content>where
Content: UnsafeUnpin,
impl<Content> UnwindSafe for WithDuration<Content>where
Content: UnwindSafe,
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