Trait timespan::Parsable

source ·
pub trait Parsable: FromStr<Err = ParseError> {
    // Required method
    fn parse_from_str(_: &str, _: &str) -> Result<Self, Error>
       where Self: Sized;
}
Expand description

Spanable types that are parsable can be used to deserialize a given string to a span instance.

Required Methods§

source

fn parse_from_str(_: &str, _: &str) -> Result<Self, Error>
where Self: Sized,

This is a wrapper method to the parse_from_str method from chrono.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Parsable for DateTime<FixedOffset>

source§

impl Parsable for DateTime<Local>

source§

impl Parsable for DateTime<Utc>

source§

impl Parsable for NaiveDate

source§

fn parse_from_str(s: &str, fmt: &str) -> Result<Self, Error>

source§

impl Parsable for NaiveDateTime

source§

fn parse_from_str(s: &str, fmt: &str) -> Result<Self, Error>

source§

impl Parsable for NaiveTime

source§

fn parse_from_str(s: &str, fmt: &str) -> Result<Self, Error>

Implementors§