Expand description
Buffer state: a revisioned Rope, undo tree, decoration cache, and
per-pane view state.
All mutation of a Buffer is the responsibility of its caller-selected
engine owner (single-writer rule). Other threads receive RopeSnapshots.
Re-exports§
pub use buffer::derive_title;pub use buffer::Buffer;pub use checksum::full_walk_rope;pub use checksum::update_for_edit as update_running_checksum;pub use checksum::CHECKSUM_VERIFY_INTERVAL;pub use checksum::FNV_OFFSET_BASIS;pub use error::Error;pub use id::BufferId;pub use id::UndoGroupId;pub use id::WindowId;pub use inverse_op::compute_inverse_op;pub use metadata::FileAssociation;pub use revision::Revision;pub use snapshot::RopeSnapshot;pub use snapshot::RopeSnapshotRegistry;pub use undo::EditRecord;pub use undo::UndoGroup;pub use undo::UndoTree;
Modules§
- buffer
- The
Bufferaggregate. - checksum
- Incremental FNV-1a 64-bit checksum maintenance for the buffer’s rope.
- error
- Errors for the
continuity-buffercrate. - id
- Identifier newtypes for buffers and undo groups.
- inverse_
op - Inverse-op derivation for undo recording.
- metadata
- Buffer metadata that is not part of the rope text.
- revision
- The per-buffer revision counter.
- snapshot
- Cheap, send-able rope snapshots tagged with a revision.
- undo
- Per-buffer undo tree, persisted in
undo_groups(and the edit log).