linebender/parley

All methods on `PlainEditor` should also be available on `PlainEditorDriver`

Open

#200 建立於 2024年12月6日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)Rust (92 fork)github user discovery
enhancementgood first issuehelp wanted

倉庫指標

Star
 (620 star)
PR 合併指標
 (PR 指標待抓取)

描述

The new "driver" API makes sense from an efficiency point of view. But it is super annoying that some methods are only available on PlainEditorDriver and some are only available on PlainEditor. This can be worked around by doing driver.editor., but this is an unnecessary API wart.

I can see two possibilities:

  • We manually add all methods
  • We implement Deref and DerefMut for PlainEditorDriver

貢獻者指南