Trait CommentsBufferTrait

Source
pub trait CommentsBufferTrait {
    // Required methods
    fn push_comment(&mut self, comment: BufferedComment);
    fn push_pending(&mut self, comment: Comment);
    fn pending_to_comment(&mut self, kind: BufferedCommentKind, pos: BytePos);
    fn take_comments(&mut self) -> impl Iterator<Item = BufferedComment> + '_;
}

Required Methods§

Source

fn push_comment(&mut self, comment: BufferedComment)

Source

fn push_pending(&mut self, comment: Comment)

Source

fn pending_to_comment(&mut self, kind: BufferedCommentKind, pos: BytePos)

Source

fn take_comments(&mut self) -> impl Iterator<Item = BufferedComment> + '_

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§