Struct todo_r::TodoRBuilder

source ·
pub struct TodoRBuilder { /* private fields */ }
Expand description

A builder to create a TodoR with a custom configuration. Customization occurs in two forms: using manual functions and adding config files.

Functions

Use functions such as add_tag() to add to the config. Functions that have override in them will fully override settings from config files.

Config files

Config files are added using add_config_file().

For an example config file, use todo_r::write_example_config().

Implementations

Creates TodoRBuilder using the default configuration.

Creates TodoRBuilder with no configuration.

Consumes self and builds TodoR.

Adds config file for TodoR.

Adds tag for TodoR to look for without overriding tags from config files.

Adds tags for TodoR to look for without overriding tags from config files.

Adds tag for TodoR to look for. This overrides tags from config files.

Adds tags for TodoR to look for. This overrides tags from config files.

Overrides verbose from config files.

Sets the terminal output of TodoR to be with no styles.

Adds path for TodoR to ignore. This overrides ignore paths from config files.

Adds paths for TodoR to ignore. This overrides ignore paths from config files.

Sets the default fall-back extension for comments.

For instance if you want to parse unknown extensions using C style comments, use builder.set_default_ext("c").

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.