Crate cld

Crate cld 

Source
Expand description

§Command line duration

§Project

  • License: GNU Lesser General Public License, either version 3, or (at your option) any later version.
  • This project follows Semantic Versioning 2.0.0

§Features

This project helps parse Duration from command line arguments.

§Notes

Documentation is built with all features. Some of them are optional. If you see components from other crates, you can view source to see what features are required.

Modules§

version_info
0.5.1 (February 22nd, 2023)

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
new
Makes new duration from Duration

Type Aliases§

Result
Result type used in this crate