[][src]Struct livesplit_core::timing::formatter::none_wrapper::NoneWrapper

pub struct NoneWrapper<F, S>(_, _);

A None Wrapper wraps a Time Formatter and changes its behavior when formatting an empty time. The None Wrapper in particular replaces the empty time with any string provided to the None Wrapper.

Methods

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

pub fn new(inner: F, none_text: S) -> Self[src]

Creates a new None Wrapper that wraps around the Time Formatter provided and replaces its empty time formatting by the string provided to this Wrapper.

Trait Implementations

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

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

The actual type that can be displayed.

Auto Trait Implementations

impl<F, S> Send for NoneWrapper<F, S> where
    F: Send,
    S: Send

impl<F, S> Sync for NoneWrapper<F, S> where
    F: Sync,
    S: Sync

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

fn adapt_into(self) -> D[src]

Convert the source color to the destination color using the bradford method by default Read more

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.