[−][src]Crate dia_assert
A small kit for confirming user actions via command line
Project
- Repository: https://bitbucket.org/haibison/dia-assert
- License: Nice License 1.0.0 (see LICENSE file at root directory of
master
branch) - This project follows Semantic Versioning 2.0.0
Features
For important tasks, if you want to confirm the user, you can use Assert
. It generates a string and asks the user to type it. You can
catch if the user fails, and process with your solution. Or you can let Assert
exit the process peacefully via process::exit()
.
Modules
version_info |
|
Structs
Assert | Use this struct with |
Enums
Level | Level |
Constants
CODE_NAME | Crate code name |
NAME | Crate name |
RELEASE_DATE | Crate release date (year/month/day) |
TAG | Tag, which can be used for logging... |
UUID | Unique universally identifier of this crate. Its CRC-32 is |
VERSION | Crate version |
Functions
try_n | Tries |
try_n_with | Tries |
try_once | Tries once |
try_once_with | Tries once |