Trait Timeline

Source
pub trait Timeline<E: Entity> {
    // Required methods
    fn new() -> Self;
    fn from_root_operation(operation: &Operation<E>) -> Self;
    fn add(&mut self, operation: &Operation<E>);
    fn history(&self) -> &[E::HistoryStep];
}
Expand description

A representation of the history of an issue.

This tracks all the changes, and can be used to access the final values of an issue.

Required Methods§

Source

fn new() -> Self

Construct a new, empty Timeline.

Source

fn from_root_operation(operation: &Operation<E>) -> Self

Construct an Timeline from a root operation.

Source

fn add(&mut self, operation: &Operation<E>)

Add an operation to this timeline.

Source

fn history(&self) -> &[E::HistoryStep]

Return the complete history.

This is useful, if you need to know the chronological relationship from two destict data values (i.e., Label and Status change).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§