[go: up one dir, main page]

Struct time::parsing::Parsed[][src]

pub struct Parsed { /* fields omitted */ }
This is supported on crate feature 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

Create a new instance of Parsed with no information known.

Parse a single component, mutating the struct. The remaining input is returned as the Ok value.

Obtain the year component.

Set the year component.

Obtain the year_last_two component.

Set the year_last_two component.

Obtain the iso_year component.

Set the iso_year component.

Obtain the iso_year_last_two component.

Set the iso_year_last_two component.

Obtain the month component.

Set the month 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.

Obtain the weekday component.

Set the weekday component.

Obtain the ordinal component.

Set the ordinal component.

Obtain the day component.

Set the day component.

Obtain the hour_24 component.

Set the hour_24 component.

Obtain the hour_12 component.

Set the hour_12 component.

Obtain the hour_12_is_pm component.

Set the hour_12_is_pm component.

Obtain the minute component.

Set the minute component.

Obtain the second component.

Set the second component.

Obtain the subsecond 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.