Struct cargo::ops::cargo_new::IgnoreList

source ·
struct IgnoreList {
    ignore: Vec<String>,
    hg_ignore: Vec<String>,
    fossil_ignore: Vec<String>,
}
Expand description

IgnoreList

Fields§

§ignore: Vec<String>

git like formatted entries

§hg_ignore: Vec<String>

mercurial formatted entries

§fossil_ignore: Vec<String>

Fossil-formatted entries.

Implementations§

constructor to build a new ignore file

Add a new entry to the ignore list. Requires three arguments with the entry in possibly three different formats. One for “git style” entries, one for “mercurial style” entries and one for “fossil style” entries.

Return the correctly formatted content of the ignore file for the given version control system as String.

format_existing is used to format the IgnoreList when the ignore file already exists. It reads the contents of the given BufRead and checks if the contents of the ignore list are already existing in the file.

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.

Should always be Self
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.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 72 bytes