format_ext.rs 732 B

12345678910111213141516171819202122232425262728
  1. use crate::{
  2. client::view::FormatExt,
  3. core::{Attribute, Delta, Interval},
  4. };
  5. pub struct FormatLinkAtCaretPositionExt {}
  6. impl FormatExt for FormatLinkAtCaretPositionExt {
  7. fn apply(&self, delta: &Delta, interval: Interval, attribute: &Attribute) -> Option<Delta> {
  8. unimplemented!()
  9. }
  10. }
  11. pub struct ResolveLineFormatExt {}
  12. impl FormatExt for ResolveLineFormatExt {
  13. fn apply(&self, delta: &Delta, interval: Interval, attribute: &Attribute) -> Option<Delta> {
  14. unimplemented!()
  15. }
  16. }
  17. pub struct ResolveInlineFormatExt {}
  18. impl FormatExt for ResolveInlineFormatExt {
  19. fn apply(&self, delta: &Delta, interval: Interval, attribute: &Attribute) -> Option<Delta> {
  20. unimplemented!()
  21. }
  22. }