[−][src]Module cotton::prelude
Re-exports
pub use structopt::StructOpt; |
pub use log; |
pub use crate::loggerv; |
Modules
__std_iter | Composable external iteration. |
fmt | Utilities for formatting and printing |
structs | The concrete iterator types. |
Macros
debug | Logs a message at the debug level. |
error | Logs a message at the error level. |
info | Logs a message at the info level. |
iproduct | Create an iterator over the “cartesian product” of iterators. |
izip | Create an iterator running multiple iterators in lockstep. |
log_enabled | Determines if a message logged at the specified level in that module will be logged. |
trace | Logs a message at the trace level. |
warn | Logs a message at the warn level. |
Structs
BufReader | The |
BufWriter | Wraps a writer and buffers its output. |
DryRunOpt | |
File | A reference to an open file on the filesystem. |
LoggingOpt | |
Problem | Wraps error, context and backtrace information and formats it for display. Data is heap allocated to avoid type parameters or lifetimes. |
Enums
Diff | A type returned by the |
Either | The enum |
EitherOrBoth | Value that either holds a single A or B, or both. |
FoldWhile | An enum used for controlling the execution of |
MinMaxResult |
|
Position | A value yielded by |
Traits
Boolinator | This trait defines a number of combinator-style methods for use with |
BufRead | A |
Debug |
|
Display | Format trait for an empty format, |
FailedTo | Extension of |
FailedToIter | Convert |
Itertools | An |
MapProblem | Map type containing error to type containing |
MapProblemOr | Map type not containing any error to type containing given |
OkOrLog | Extension of |
OkOrLogIter | Convert |
OkOrProblem | Extension trait to map |
PeekingNext | An iterator that allows peeking at an element before deciding to accept it. |
ProblemWhile | Convert to |
Read | The |
StructOpt | A struct that is converted from command line arguments. |
TapBooleanOps | Tap operations for |
TapOps | Tap operations for all types. |
TapOptionOps | Tap operations for |
TapResultOps | Tap operations for |
Write | A trait for objects which are byte-oriented sinks. |
Functions
assert_equal | Assert that two iterables produce equal sequences, with the same semantics as equal(a, b). |
concat | Combine all an iterator's elements into one element by using |
cons_tuples | Create an iterator that maps for example iterators of
|
diff_with | Compares every element yielded by both |
equal | Return |
in_context_of | Executes closure with |
in_context_of_with | Executes closure with |
init_logger | |
iterate | Creates a new iterator that infinitely applies function to value and yields results. |
kmerge_by | Create an iterator that merges elements of the contained iterators. |
multizip | An iterator that generalizes .zip() and allows running multiple iterators in lockstep. |
partition | Partition a sequence using predicate |
process_results | “Lift” a function of the values of an iterator so that it can process
an iterator of |
read_stdin | |
repeat_call | Deprecated An iterator source that produces elements indefinitely by calling a given closure. |
repeat_n | Create an iterator that produces |
stdin | Constructs a new handle to the standard input of the current process. |
stdout | Constructs a new handle to the standard output of the current process. |
unfold | Creates a new unfold source with the specified closure as the "iterator function" and an initial state to eventually pass to the closure |