pub struct CinematicDef<S> {
pub id: String,
pub music: Option<String>,
pub length_ms: u32,
pub shots: Vec<ShotDef<S>>,
}Expand description
One cinematic: its shots, in order, over a length of time.
Fields§
§id: StringThe cinematic’s id (its file stem).
music: Option<String>The music cue whose length is the cinematic’s, if it follows one.
length_ms: u32How long it is, in milliseconds (never 0): the music cue’s
length_ms, or the length the file states.
shots: Vec<ShotDef<S>>The shots, by start time; never empty, the first at 0. A shot lasts until the next one starts, the last until the end.
Trait Implementations§
Source§impl<S: Clone> Clone for CinematicDef<S>
impl<S: Clone> Clone for CinematicDef<S>
Source§fn clone(&self) -> CinematicDef<S>
fn clone(&self) -> CinematicDef<S>
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<S: Debug> Debug for CinematicDef<S>
impl<S: Debug> Debug for CinematicDef<S>
impl<S: Eq> Eq for CinematicDef<S>
Source§impl<S: PartialEq> PartialEq for CinematicDef<S>
impl<S: PartialEq> PartialEq for CinematicDef<S>
impl<S: PartialEq> StructuralPartialEq for CinematicDef<S>
Auto Trait Implementations§
impl<S> Freeze for CinematicDef<S>
impl<S> RefUnwindSafe for CinematicDef<S>where
S: RefUnwindSafe,
impl<S> Send for CinematicDef<S>where
S: Send,
impl<S> Sync for CinematicDef<S>where
S: Sync,
impl<S> Unpin for CinematicDef<S>where
S: Unpin,
impl<S> UnsafeUnpin for CinematicDef<S>
impl<S> UnwindSafe for CinematicDef<S>where
S: 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