pub struct Comments {
pub pre_lines: Vec<String>,
pub post_comment: Option<String>,
}Fields§
§pre_lines: Vec<String>Lines of comments or blank lines that precede the main text line.
post_comment: Option<String>Comment at the end of the main text line.
Implementations§
Source§impl Comments
impl Comments
pub fn new() -> Self
pub fn display_pre_comments(&self) -> DisplayPreComments<'_>
pub fn display_post_comment(&self) -> DisplayPostComment<'_>
pub fn remove_leading_blank_lines(&mut self)
Trait Implementations§
impl Eq for Comments
impl StructuralPartialEq for Comments
Auto Trait Implementations§
impl Freeze for Comments
impl RefUnwindSafe for Comments
impl Send for Comments
impl Sync for Comments
impl Unpin for Comments
impl UnsafeUnpin for Comments
impl UnwindSafe for Comments
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more