pub struct Run { /* private fields */ }Implementations§
Source§impl Run
impl Run
pub fn new( game_title: String, category: String, offset: Option<u128>, pb: u128, splits: Vec<String>, pb_times: Vec<u128>, gold_times: Vec<u128>, ) -> Self
pub fn set_times(&mut self, splits: &Vec<u128>)
pub fn get_times(&self) -> &Vec<u128>
pub fn pb(&self) -> u128
pub fn set_pb(&mut self, pb: u128)
pub fn get_golds(&self) -> &Vec<u128>
pub fn gold_time(&self, index: usize) -> u128
pub fn set_gold_time(&mut self, index: usize, time: u128)
pub fn offset(&self) -> Option<u128>
pub fn split_names(&self) -> &Vec<String>
pub fn set_name(&mut self, name: String, index: usize)
pub fn set_time(&mut self, time: u128, index: usize)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Run
impl RefUnwindSafe for Run
impl Send for Run
impl Sync for Run
impl Unpin for Run
impl UnwindSafe for Run
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