Trait timespan::Parsable
[−]
[src]
pub trait Parsable: FromStr<Err = ParseError> { fn parse_from_str(_: &str, _: &str) -> Result<Self, Error>
where
Self: Sized; }
Spanable types that are parsable can be used to deserialize a given string to a span instance.
Required Methods
fn parse_from_str(_: &str, _: &str) -> Result<Self, Error> where
Self: Sized,
Self: Sized,
This is a wrapper method to the parse_from_str
method from chrono
.
Implementations on Foreign Types
impl Parsable for ChronoDateTime<Local>
[src]
fn parse_from_str(s: &str, fmt: &str) -> Result<ChronoDateTime<Local>, Error>
[src]
impl Parsable for ChronoDateTime<Utc>
[src]
fn parse_from_str(s: &str, fmt: &str) -> Result<ChronoDateTime<Utc>, Error>
[src]
impl Parsable for ChronoDateTime<FixedOffset>
[src]
fn parse_from_str(
s: &str,
fmt: &str
) -> Result<ChronoDateTime<FixedOffset>, Error>
[src]
s: &str,
fmt: &str
) -> Result<ChronoDateTime<FixedOffset>, Error>