[−][src]Crate cld
Command line duration
Project
- Repository: https://bitbucket.org/haibison/cld
- License: Nice License 1.0.0 (see LICENSE file at root directory of
master
branch) - This project follows Semantic Versioning 2.0.0
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 |
|
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 |