pub struct SplitTime {
pub time: [f32; 2],
pub tags: Vec<[String; 2]>,
}Expand description
Time segmentation resource for tracking and managing timing information.
时间分段资源,用于跟踪和管理时间信息。
This resource allows for precise timing control by storing both page-specific and total application runtime, enabling coordinated animations.
该资源通过存储页面特定运行时间和应用程序总运行时间实现精确的时间控制,支持协调动画。
Fields§
§time: [f32; 2]Timing values: [page_runtime, total_runtime] in seconds.
时间点:[页面运行时间, 总运行时间],单位为秒。
Key-value pairs for categorization and metadata storage.
用于分类和元数据存储的键值对标签。
Implementations§
Trait Implementations§
Source§impl PartialOrd for SplitTime
impl PartialOrd for SplitTime
Source§impl RustConstructorResource for SplitTime
impl RustConstructorResource for SplitTime
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Returns a reference to the resource as
Any for extract the specific type. Read moreSource§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Returns a mutable reference to the resource as
Any for extract the specific type. Read moreSource§fn display_display_info(&self) -> Option<DisplayInfo>
fn display_display_info(&self) -> Option<DisplayInfo>
Retrieves the display info field for this resource. Read more
Source§fn modify_display_info(&mut self, _display_info: DisplayInfo)
fn modify_display_info(&mut self, _display_info: DisplayInfo)
Updates the display info field for this resource. Read more
Returns all tags associated with this resource. Read more
Updates the tags for this resource. Read more
impl StructuralPartialEq for SplitTime
Auto Trait Implementations§
impl Freeze for SplitTime
impl RefUnwindSafe for SplitTime
impl Send for SplitTime
impl Sync for SplitTime
impl Unpin for SplitTime
impl UnsafeUnpin for SplitTime
impl UnwindSafe for SplitTime
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().