Skip to main content

CommentsExt

Trait CommentsExt 

Source
pub trait CommentsExt: Comments {
    // Provided methods
    fn with_leading<F, Ret>(&self, pos: BytePos, op: F) -> Ret
       where F: FnOnce(&[Comment]) -> Ret { ... }
    fn with_trailing<F, Ret>(&self, pos: BytePos, op: F) -> Ret
       where F: FnOnce(&[Comment]) -> Ret { ... }
}
๐Ÿ‘ŽDeprecated since 0.13.5:

helper methods are merged into Comments itself

Provided Methodsยง

Source

fn with_leading<F, Ret>(&self, pos: BytePos, op: F) -> Ret
where F: FnOnce(&[Comment]) -> Ret,

๐Ÿ‘ŽDeprecated since 0.13.5:

helper methods are merged into Comments itself

Source

fn with_trailing<F, Ret>(&self, pos: BytePos, op: F) -> Ret
where F: FnOnce(&[Comment]) -> Ret,

๐Ÿ‘ŽDeprecated since 0.13.5:

helper methods are merged into Comments itself

Dyn Compatibilityยง

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementorsยง

Sourceยง

impl<C> CommentsExt for C
where C: Comments,