pub trait ParseFancyDuration<T>
where Self: Sized, T: AsTimes,
{ // Required method fn parse_fancy_duration(s: String) -> Result<Self, Error>; }
Expand description

Implement ParseFancyDuration for your Duration type to implement parsing constructors for your Duration. A more generic parse implementation for String and &str may come in a future version.

Required Methods§

source

fn parse_fancy_duration(s: String) -> Result<Self, Error>

Parse T from String, which allows the construction of a T from the fancy duration specified in the string.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ParseFancyDuration<Duration> for Duration

Implementors§