pub struct TodoFile { /* private fields */ }
Expand description

Represents a rebase file.

Implementations

Create a new instance.

Set the rebase lines.

Load the rebase file from disk.

Errors

Returns error if the file cannot be read.

Write the rebase file to disk.

Errors

Returns error if the file cannot be written.

Set the selected line index.

Swap a range of lines up.

Swap a range of lines down.

Add a new line.

Remove a range of lines.

Update a range of lines.

Undo the last modification.

Redo the last undone modification.

Get the selected line.

Get the index of the last line that can be selected.

Get the selected line index

Get the file path to the rebase file.

Get a line by index.

Get an owned copy of the lines.

Is the rebase file a noop.

Get an iterator over the lines.

Does the rebase file contain no lines.

Trait Implementations

Formats the value using the given formatter. 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 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.