[][src]Trait livesplit_core::timing::formatter::TimeFormatter

pub trait TimeFormatter<'a> {
type Inner: Display;
    fn format<T>(&'a self, time: T) -> Self::Inner
    where
        T: Into<Option<TimeSpan>>
; }

Time Formatters can be used to format optional Time Spans in various ways.

Associated Types

type Inner: Display

The actual type that can be displayed.

Loading content...

Required methods

fn format<T>(&'a self, time: T) -> Self::Inner where
    T: Into<Option<TimeSpan>>, 

Constructs an object that displays the provided time span in a certain way.

Loading content...

Implementors

impl<'a> TimeFormatter<'a> for Complete[src]

type Inner = Inner

impl<'a> TimeFormatter<'a> for Days[src]

type Inner = Inner

impl<'a> TimeFormatter<'a> for Delta[src]

type Inner = Inner

impl<'a> TimeFormatter<'a> for PossibleTimeSave[src]

type Inner = Inner

impl<'a> TimeFormatter<'a> for Regular[src]

type Inner = Inner

impl<'a> TimeFormatter<'a> for Short[src]

type Inner = Inner

impl<'a> TimeFormatter<'a> for Fraction[src]

type Inner = FractionInner

impl<'a> TimeFormatter<'a> for Time[src]

type Inner = TimeInner

impl<'a, F: 'a + TimeFormatter<'a>, S: 'a + AsRef<str>> TimeFormatter<'a> for NoneWrapper<F, S>[src]

type Inner = Inner<'a, F, S>

Loading content...