Skip to main content

Module ops

Module ops 

Source
Expand description

Edit operations and the invariants they preserve.

Every timeline edit is an EditOp applied to an EditProject. Operations are validated and invariant-preserving (see EditProject::check_invariants). Undo / redo is layered on top in crate::history.

Trim / split / speed operate on the segment list; the zoom operations operate on the zoom list, which is kept sorted by start frame.

Enumsยง

EditError
Why an EditOp could not be applied.
EditOp
A single, undoable edit applied to an EditProject.
TrimEdge
Which edge of a segment a EditOp::Trim moves.