[][src]Crate cld

Command line duration

Project

Features

This project helps parse Duration from command line arguments.

Notes

The crate uses #![no_std] by default. Documentation is built with all features, which include std. If you see some components from std crate, you have to use that feature.

Modules

version_info

0.2.1 (November 16th, 2019)

Structs

ClDuration

Command line duration

Error

Error

Constants

CODE_NAME

Crate code name

DAY

One day in seconds

HOUR

An hour in seconds

ID

ID of this crate

MINUTE

One minute in seconds

NAME

Crate name

RELEASE_DATE

Crate release date (year/month/day)

TAG

Tag, which can be used for logging...

VERSION

Crate version

WEEK

One week in seconds

Functions

from_micros

Makes new duration from microseconds

from_millis

Makes new duration from milliseconds

from_nanos

Makes new duration from nanoseconds

from_secs

Makes new duration from seconds

Type Definitions

Result

Result type used in this crate