ratatui-org / ratatui

Rust library that's all about cooking up terminal user interfaces (TUIs) 👨‍🍳🐀
https://ratatui.rs
MIT License
8.86k stars 269 forks source link

Make methods / fields on buffer that deal with the underlying content index private. #1122

Open joshka opened 1 month ago

joshka commented 1 month ago

I'd prefer to make the content field and the methods that deal directly with indexes (index_of, pos_of) private as it may allow us to migrate to more efficient storage approaches than we currently use. For now, I'd prefer to keep this as an additive only change and do the larger things separately after some discussion.

_Originally posted by @joshka in https://github.com/ratatui-org/ratatui/pull/1084#discussion_r1588893283_