pub struct CompositedFrame { /* private fields */ }Expand description
A composited animation frame: the whole canvas at one point in time, plus how long it is shown.
Implementations§
Source§impl CompositedFrame
impl CompositedFrame
Sourcepub const fn duration_ms(&self) -> u32
pub const fn duration_ms(&self) -> u32
How long this canvas is displayed, in milliseconds.
Sourcepub fn into_image(self) -> Image
pub fn into_image(self) -> Image
Consume the composited frame, returning its canvas image.
Trait Implementations§
Source§impl Clone for CompositedFrame
impl Clone for CompositedFrame
Source§fn clone(&self) -> CompositedFrame
fn clone(&self) -> CompositedFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompositedFrame
impl Debug for CompositedFrame
impl Eq for CompositedFrame
Source§impl PartialEq for CompositedFrame
impl PartialEq for CompositedFrame
impl StructuralPartialEq for CompositedFrame
Auto Trait Implementations§
impl Freeze for CompositedFrame
impl RefUnwindSafe for CompositedFrame
impl Send for CompositedFrame
impl Sync for CompositedFrame
impl Unpin for CompositedFrame
impl UnsafeUnpin for CompositedFrame
impl UnwindSafe for CompositedFrame
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more