Expand description
Typical imports.
Re-exports§
pub use super::deps;pub use ::comfy_table;pub use ::fastrand;pub use ::howudoin;pub use ::rayon;pub use super::cmd::Output::*;
Macros§
- anyhow
- Construct an ad-hoc error from a string or existing non-
anyhowerror value. - bail
- Return early with an error.
- cargs
- Construct a
[String]array from a list of arguments. - cmd
- Helper to construct a
Commandwith arguments. - ensure
- Return early with an error if a condition is not satisfied.
Structs§
- Args
- Arguments iterator.
- CSV
- A CSV
Format. - Date
- Date in the proleptic Gregorian calendar.
- Duration
- A wrapper for duration that has
FromStrimplementation - Error
- The
Errortype, a wrapper around a dynamic error type. - File
- Wraps a std
Filewhich provides extra context for errors and buffered writing. - JSON
- A json
Format. - NumFmt
- The number formatter configurations. See the module documentation for use.
- Offset
Date Time - A
PrimitiveDateTimewith aUtcOffset. - Primitive
Date Time - Combined date and time.
- Receiver
- The receiving end of a channel.
- Regex
- A compiled regular expression for searching Unicode haystacks.
- Sender
- A transmitting end of a channel.
- TOML
- A toml
Format. - Table
Printer - This is the main interface for building a table. Each table consists of Rows, which in turn contain Cells.
- Time
- The clock time within a given date. Nanosecond precision.
- Timestamp
- A wrapper for SystemTime that has
FromStrimplementation - UtcOffset
- An offset from UTC.
Enums§
- Json
Value - Represents any valid JSON value.
- Month
- Months of the year.
- Output
- Describes the handling of a command execution for implementors of
CommandExecute. - Weekday
- Days of the week.
Traits§
- Command
Builder - Methods on
Commandwhich takeself. - Command
Execute - Execute a command.
- Command
String - Output
Commandas a text string, useful for debugging. - Context
- Provides the
contextmethod forResult. - Deserialize
- A data structure that can be deserialized from any data format supported by Serde.
- Deserialize
Owned - A data structure that can be deserialized without borrowing any data from the deserializer.
- Format
- Defines a structured format which can be used with
ReadAs/WriteAs. - Itertools
- An
Iteratorblanket implementation that provides extra adaptors and methods. - Read
- The
Readtrait allows for reading bytes from a source. - ReadAs
- A trait which gives any
Reader theread_asfunction which can be used to read with a specific format. - Serialize
- A data structure that can be serialized into any data format supported by Serde.
- Write
- A trait for objects which are byte-oriented sinks.
- WriteAs
- A trait which can supply
write_ason a type to serialise it into a specific format and write it into aWriter.
Functions§
- args
- Get the command line
Args. - bounded
- Create a channel with a maximum capacity.
- ls
- List out the directory entries under
pathwhich match the glob patternmatching. - parse_
duration - Parse duration object
1hour 12min 5s - unbounded
- Create a channel with no maximum capacity.