1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
use crate::Span;

/// A comment.
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[cfg_attr(
    feature = "serde-1",
    derive(serde_derive::Serialize, serde_derive::Deserialize)
)]
pub struct Comment<'input> {
    /// The comment itself.
    pub value: &'input str,
    /// Where the comment is located in the original string.
    pub span: Span,
}