pub struct Comments {
pub head: Vec<String>,
pub inline: Option<String>,
pub foot: Vec<String>,
}Expand description
The comments attached to one node, by kind.
Fields§
§head: Vec<String>Own-line comments immediately before the node, one entry per line.
inline: Option<String>A trailing comment on the node’s own line.
foot: Vec<String>Own-line comments after the node that no following sibling claims.
Implementations§
Trait Implementations§
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