css_ast/types/
custom_ident.rs

1use super::prelude::*;
2
3/// <https://drafts.csswg.org/css-values/#custom-idents>
4///
5/// Wraps `T![Ident]`, but exists for the purposes of Visitable/VisitableMut.
6#[derive(IntoCursor, Parse, Peek, ToCursors, Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
7#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
8#[cfg_attr(feature = "visitable", derive(csskit_derives::Visitable), visit(self))]
9pub struct CustomIdent(T![Ident]);