Struct livesplit_core::SegmentHistory
[−]
[src]
pub struct SegmentHistory(_);
Methods
impl SegmentHistory
[src]
fn try_get_min_index(&self) -> Option<i32>
[src]
fn min_index(&self) -> i32
[src]
Defaults to a maximum of 1
fn try_get_max_index(&self) -> Option<i32>
[src]
fn insert(&mut self, index: i32, time: Time)
[src]
fn get(&self, index: i32) -> Option<Time>
[src]
fn get_mut(&mut self, index: i32) -> Option<&mut Time>
[src]
fn remove(&mut self, index: i32)
[src]
fn clear(&mut self)
[src]
fn retain<F>(&mut self, f: F) where
F: FnMut(&(i32, Time)) -> bool,
[src]
F: FnMut(&(i32, Time)) -> bool,
fn iter(&self) -> Iter<(i32, Time)>
[src]
fn iter_mut(&mut self) -> IterMut<(i32, Time)>
[src]
fn iter_actual_runs(&self) -> Iter<(i32, Time)>
[src]
Trait Implementations
impl Clone for SegmentHistory
[src]
fn clone(&self) -> SegmentHistory
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for SegmentHistory
[src]
fn default() -> SegmentHistory
[src]
Returns the "default value" for a type. Read more
impl Debug for SegmentHistory
[src]
impl PartialEq for SegmentHistory
[src]
fn eq(&self, __arg_0: &SegmentHistory) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SegmentHistory) -> bool
[src]
This method tests for !=
.
impl<'a> IntoIterator for &'a SegmentHistory
[src]
type Item = &'a (i32, Time)
The type of the elements being iterated over.
type IntoIter = Iter<'a, (i32, Time)>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Iter<'a, (i32, Time)>
[src]
Creates an iterator from a value. Read more