pub struct PropertiesWriter<W: Write> { /* private fields */ }
Expand description

Writes to a properties file.

Implementations

Writes to the given Write stream.

Writes to the given Write stream in the given encoding. Note that the Java properties specification specifies ISO-8859-1 encoding for properties files; in most cases, new should be called instead.

Writes a comment to the file.

Writes a key/value pair to the file.

Flushes the underlying stream.

Sets the comment prefix.

The prefix must contain a ‘#’ or a ‘!’, may only contain spaces, tabs, or form feeds before the comment character, and may not contain any carriage returns or line feeds (‘\r’ or ‘\n’).

Sets the key/value separator.

The separator may be non-empty whitespace, or a colon with optional whitespace on either side, or an equals sign with optional whitespace on either side. (Whitespace here means ’ ’, ‘\t’, or ‘\f’.)

Sets the line ending.

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 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.