pub struct RepeatTime { /* private fields */ }Expand description
Repeat time.
Implementations§
Source§impl RepeatTime
impl RepeatTime
Sourcepub fn new<T>(
repeat_interval: UnsignedCompactDuration,
active_duration: UnsignedCompactDuration,
offsets: T,
) -> Self
pub fn new<T>( repeat_interval: UnsignedCompactDuration, active_duration: UnsignedCompactDuration, offsets: T, ) -> Self
Create a new repeat time.
Sourcepub fn repeat_interval(&self) -> UnsignedCompactDuration
pub fn repeat_interval(&self) -> UnsignedCompactDuration
Get the repeat interval.
Sourcepub fn active_duration(&self) -> UnsignedCompactDuration
pub fn active_duration(&self) -> UnsignedCompactDuration
Get the active duration.
Sourcepub fn offsets(&self) -> &[UnsignedCompactDuration]
pub fn offsets(&self) -> &[UnsignedCompactDuration]
Get the offsets from the corresponding start time.
Trait Implementations§
Source§impl Clone for RepeatTime
impl Clone for RepeatTime
Source§fn clone(&self) -> RepeatTime
fn clone(&self) -> RepeatTime
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Display for RepeatTime
impl Display for RepeatTime
Auto Trait Implementations§
impl Freeze for RepeatTime
impl RefUnwindSafe for RepeatTime
impl Send for RepeatTime
impl Sync for RepeatTime
impl Unpin for RepeatTime
impl UnwindSafe for RepeatTime
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