Sign in

    hnlyxiaobing/toml/datetime does not have a README file

    TomlDateTime

    pub(all) enum TomlDateTime {
    OffsetDateTime(String)
    LocalDateTime(String)
    LocalDate(String)
    LocalTime(String)
    } derive(Eq,
    Debug
    )

    TOML datetime variants (RFC 3339 subset).

    TOML distinguishes four kinds of datetime literals:
    • OffsetDateTime — full date + time + UTC offset (e.g. 1979-05-27T07:32:00Z)
    • LocalDateTime — date + time, no offset (e.g. 1979-05-27T07:32:00)
    • LocalDate — date only (e.g. 1979-05-27)
    • LocalTime — time only (e.g. 07:32:00)

    Values are stored as their original string form. The parser preserves the spelling supplied in the TOML source; it does not normalize or validate the underlying calendar arithmetic.

    TomlDateTime::equal

    Extend TomlDateTime with Eq and Debug methods

    TomlDateTime::not_equal

    fn TomlDateTime::not_equal(x : TomlDateTime, y : TomlDateTime) -> Bool

    Extend TomlDateTime with Eq and Debug methods

    TomlDateTime::output

    fn TomlDateTime::output(self : TomlDateTime, logger : &Logger) -> Unit

    Extend TomlDateTime with Show methods

    TomlDateTime::to_repr

    automatically derived

    TomlDateTime::to_string

    fn TomlDateTime::to_string(self : TomlDateTime) -> String

    Extend TomlDateTime with Show methods

    Source Files