pub struct ClipWithSource {
pub clip: Clip,
pub source: Arc<RenderSource>,
}Expand description
A pairing of a Clip with its already-resolved (and decoded) media source.
Both fields are cheaply cloneable: Clip is Clone and Arc<RenderSource>
is reference-counted.
Fields§
§clip: ClipThe clip’s timing / metadata.
source: Arc<RenderSource>Resolved and decoded media source (shared, thread-safe).
Trait Implementations§
Source§impl Clone for ClipWithSource
impl Clone for ClipWithSource
Source§fn clone(&self) -> ClipWithSource
fn clone(&self) -> ClipWithSource
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 moreAuto Trait Implementations§
impl Freeze for ClipWithSource
impl RefUnwindSafe for ClipWithSource
impl Send for ClipWithSource
impl Sync for ClipWithSource
impl Unpin for ClipWithSource
impl UnsafeUnpin for ClipWithSource
impl UnwindSafe for ClipWithSource
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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