Struct time::parsing::Parsed [−][src]
pub struct Parsed { /* fields omitted */ }
parsing
only.Expand description
All information parsed.
This information is directly used to construct the final values.
Most users will not need think about this struct in any way. It is public to allow for manual control over values, in the instance that the default parser is insufficient.
All setters return Option<()>
, which is Some
if the value was set and None
if not. The
setters may fail if the value is invalid, though behavior is not guaranteed.
Implementations
Parse a single component, mutating the struct. The remaining input is returned as the Ok
value.
Obtain the year_last_two
component.
Set the year_last_two
component.
Set the iso_year
component.
Obtain the iso_year_last_two
component.
Set the iso_year_last_two
component.
Obtain the sunday_week_number
component.
Set the sunday_week_number
component.
Obtain the monday_week_number
component.
Set the monday_week_number
component.
Obtain the iso_week_number
component.
Set the iso_week_number
component.
Set the weekday
component.
Obtain the ordinal
component.
Set the ordinal
component.
Set the hour_24
component.
Set the hour_12
component.
Obtain the hour_12_is_pm
component.
Set the hour_12_is_pm
component.
Set the minute
component.
Set the second
component.
Set the subsecond
component.
Obtain the offset_hour
component.
Set the offset_hour
component.
Obtain the offset_minute
component.
Set the offset_minute
component.
Obtain the offset_second
component.
Set the offset_second
component.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Parsed
impl UnwindSafe for Parsed
Blanket Implementations
Mutably borrows from an owned value. Read more