pub struct TimedEventSchedule {
pub first: f64,
pub last: Option<f64>,
pub interval: Option<f64>,
pub cooldown: Option<f64>,
pub duration: f64,
}Fields§
§first: f64§last: Option<f64>§interval: Option<f64>§cooldown: Option<f64>§duration: f64Implementations§
Source§impl TimedEventSchedule
impl TimedEventSchedule
pub fn occurrences(self, fight_duration_s: f64) -> Vec<f64>
Trait Implementations§
Source§impl Clone for TimedEventSchedule
impl Clone for TimedEventSchedule
Source§fn clone(&self) -> TimedEventSchedule
fn clone(&self) -> TimedEventSchedule
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 Debug for TimedEventSchedule
impl Debug for TimedEventSchedule
Source§impl<'de> Deserialize<'de> for TimedEventSchedule
impl<'de> Deserialize<'de> for TimedEventSchedule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TimedEventSchedule
impl PartialEq for TimedEventSchedule
impl Copy for TimedEventSchedule
impl StructuralPartialEq for TimedEventSchedule
Auto Trait Implementations§
impl Freeze for TimedEventSchedule
impl RefUnwindSafe for TimedEventSchedule
impl Send for TimedEventSchedule
impl Sync for TimedEventSchedule
impl Unpin for TimedEventSchedule
impl UnsafeUnpin for TimedEventSchedule
impl UnwindSafe for TimedEventSchedule
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