Struct history_tree::HistoryTree [] [src]

pub struct HistoryTree {
    pub records: Vec<Record>,
    pub cursor: Option<usize>,
}

Stores information about history tree relations.

Fields

Stores records.

History cursor. Points to an index of records where all previous changes are active, and those after are inactive. When set to None, it is assumed to point to the latest version.

Methods

impl HistoryTree
[src]

Creates a new history tree.

Gets the root.

Gets the cursor.

Add new node.

Change node.

Delete node.

Gets the names of children.

Goes back one step in history.

Goes forward one step in history.

Prints relations to standard output. This is used for debugging.

Trait Implementations

impl Clone for HistoryTree
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for HistoryTree
[src]

Formats the value using the given formatter.

impl PartialEq for HistoryTree
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for HistoryTree
[src]