aboutsummaryrefslogtreecommitdiff
path: root/src/attr.rs
blob: d0d506e23b8335904bb7990e98d9a040f9788f67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::ops::Range;

/// A HTML attribute value (plus spans).
#[derive(Debug, Eq, PartialEq)]
pub struct Attribute<O> {
    /// The value of the attribute.
    pub value: String,

    /// The source code span of the attribute name.
    pub name_span: Range<O>,

    /// The source code span of the attribute value.
    pub value_span: Range<O>,
}