Struct livesplit_core::Segment
[−]
[src]
pub struct Segment { /* fields omitted */ }
Methods
impl Segment
[src]
fn new<S>(name: S) -> Self where
S: Into<String>,
S: Into<String>,
fn name(&self) -> &str
fn set_name<S>(&mut self, name: S) where
S: AsRef<str>,
S: AsRef<str>,
fn icon(&self) -> &Image
fn set_icon<D: Into<Image>>(&mut self, image: D)
fn comparisons_mut(&mut self) -> &mut HashMap<String, Time>
fn comparison_mut(&mut self, comparison: &str) -> &mut Time
fn comparison(&self, comparison: &str) -> Time
fn comparison_timing_method(
&self,
comparison: &str,
method: TimingMethod
) -> Option<TimeSpan>
&self,
comparison: &str,
method: TimingMethod
) -> Option<TimeSpan>
fn personal_best_split_time(&self) -> Time
fn personal_best_split_time_mut(&mut self) -> &mut Time
fn set_personal_best_split_time(&mut self, time: Time)
fn best_segment_time(&self) -> Time
fn best_segment_time_mut(&mut self) -> &mut Time
fn set_best_segment_time(&mut self, time: Time)
fn split_time(&self) -> Time
fn set_split_time(&mut self, time: Time)
fn clear_split_time(&mut self)
fn segment_history(&self) -> &SegmentHistory
fn segment_history_mut(&mut self) -> &mut SegmentHistory
Trait Implementations
impl Clone for Segment
[src]
fn clone(&self) -> Segment
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more