fission-text-engine 0.2.0

Text shaping, editing, and measurement primitives for Fission
Documentation
  • Coverage
  • 97.22%
    70 out of 72 items documented0 out of 59 items with examples
  • Size
  • Source code size: 43.25 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 866.81 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • worka-ai/fission
    8 3 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • zcourts

fission-text-engine

Text-buffer primitives for Fission editors and editable text widgets.

fission-text-engine wraps rope-backed text storage and editing operations used by higher-level Fission text surfaces. Most application developers should use the text widgets exposed by the fission facade. Depend on this crate directly when building editor features, custom text controls, or framework-level text tooling.

What it contains

  • Rope-backed text storage suitable for large editable documents.
  • Line and byte indexing helpers.
  • Insert, delete, and replace operations used by text input and editor-style widgets.
  • Small, dependency-light primitives that can be reused by shells and tests.

Example

use fission_text_engine::TextBuffer;

let mut buffer = TextBuffer::from("hello");
buffer.insert(5, " world");
assert_eq!(buffer.to_string(), "hello world");

Documentation

Start with the Fission text and input guides at fission.rs. API documentation and guides are available at https://fission.rs.

License

MIT