pub struct SealedRanimScene {
pub(crate) total_secs: f64,
pub(crate) timelines: Vec<Timeline>,
pub(crate) time_marks: Vec<(f64, TimeMark)>,
}Expand description
The sealed RanimScene.
the timelines and time marks cannot be modified after sealed. And
once the RanimScene is sealed, it can be used for evaluating.
Fields§
§total_secs: f64§timelines: Vec<Timeline>§time_marks: Vec<(f64, TimeMark)>Implementations§
Source§impl SealedRanimScene
impl SealedRanimScene
Sourcepub fn total_secs(&self) -> f64
pub fn total_secs(&self) -> f64
Get the total seconds of the SealedRanimScene.
Sourcepub fn time_marks(&self) -> &[(f64, TimeMark)]
pub fn time_marks(&self) -> &[(f64, TimeMark)]
Get time marks
Sourcepub fn timelines_iter(&self) -> impl Iterator<Item = &Timeline>
pub fn timelines_iter(&self) -> impl Iterator<Item = &Timeline>
Get the iterator of timelines
Sourcepub fn timelines_cnt(&self) -> usize
pub fn timelines_cnt(&self) -> usize
Get the count of timelines
Sourcepub fn get_timeline_infos(&self) -> Vec<TimelineInfo>
pub fn get_timeline_infos(&self) -> Vec<TimelineInfo>
Get timeline infos.
Auto Trait Implementations§
impl Freeze for SealedRanimScene
impl !RefUnwindSafe for SealedRanimScene
impl !Send for SealedRanimScene
impl !Sync for SealedRanimScene
impl Unpin for SealedRanimScene
impl !UnwindSafe for SealedRanimScene
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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