enum ParsedAttr {
Single(AttrSel, AttrExt),
DashMatch(AttrSel, AttrExt),
Never,
}Expand description
[attr...] の解析結果。
Variants§
Single(AttrSel, AttrExt)
DashMatch(AttrSel, AttrExt)
[a|=v](値が v か v- で始まる)。AttrOp に変種を足すと照合側の網羅 match が壊れるため、
parse_compound で「[a=v] か [a^="v-"]」を二重否定に組み直す(dash_match_compound)。
Never
決して一致しない(名前空間接頭辞 [ns|a]・解析できない中身)。
Auto Trait Implementations§
impl Freeze for ParsedAttr
impl RefUnwindSafe for ParsedAttr
impl Send for ParsedAttr
impl Sync for ParsedAttr
impl Unpin for ParsedAttr
impl UnsafeUnpin for ParsedAttr
impl UnwindSafe for ParsedAttr
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