Skip to content

Commit

Permalink
docs: add Attributes docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcur committed May 19, 2024
1 parent 548ef87 commit 2a92fa5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ir_markup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ pub enum Error {

pub type Result<T> = std::result::Result<T, Error>;

/// Block element attributes. This struct keeps attributes ordered deterministically by their key.
/// Equality of attribute structs is invariant over key insertion order.
#[derive(Clone, Debug)]
pub struct Attributes<'s> {
attributes: Vec<(Cow<'s, str>, AttributeValue<'s>)>,
Expand Down

0 comments on commit 2a92fa5

Please sign in to comment.