/// Trait for implementing pause/resume functionality
pubtraitPause{/// Returns true if the widget is currently paused
fnis_paused(&self)->bool;/// Pauses the widget
fnpause(&mutself);/// Resumes the widget
fnresume(&mutself);/// Toggles the pause state
fntoggle_paused(&mutself){ifself.is_paused(){self.resume();}else{self.pause();}}}