pub struct WebNames<'a> {
pub tag_class_prefix: &'a str,
pub selected: &'a str,
pub checked: &'a str,
pub disabled: &'a str,
pub drag_over: &'a str,
pub checkbox_part: &'a str,
pub radio_part: &'a str,
}Expand description
The names a browser knows a Lumen element by.
Two things Lumen spells in the selector itself have no browser
equivalent: an element’s tag, which survives into the document only as
a class, and the four states no CSS pseudo-class covers. The web target
owns both names, and this crate must not depend on it, so
selector_to_web takes them from the caller. Hand it
lumen_html::web_names() rather than writing the strings out again.
Fields§
§tag_class_prefix: &'a strPrefix of the class every element carries for its tag: with
lm-, a <row> is .lm-row.
selected: &'a strAttribute mirroring :selected.
checked: &'a strAttribute mirroring :checked on an element that is not a real
HTML checkbox.
disabled: &'a strAttribute mirroring :disabled on an element that takes no HTML
disabled.
drag_over: &'a strAttribute mirroring :drag-over.
checkbox_part: &'a strClass of the indicator a <checkbox> is drawn with, which is the
element its checked state lands on.
radio_part: &'a strClass of the indicator a <radio> is drawn with.
Trait Implementations§
Source§impl<'a> PartialEq for WebNames<'a>
impl<'a> PartialEq for WebNames<'a>
impl<'a> Copy for WebNames<'a>
impl<'a> Eq for WebNames<'a>
impl<'a> StructuralPartialEq for WebNames<'a>
Auto Trait Implementations§
impl<'a> Freeze for WebNames<'a>
impl<'a> RefUnwindSafe for WebNames<'a>
impl<'a> Send for WebNames<'a>
impl<'a> Sync for WebNames<'a>
impl<'a> Unpin for WebNames<'a>
impl<'a> UnsafeUnpin for WebNames<'a>
impl<'a> UnwindSafe for WebNames<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> DynEq for T
impl<T> DynEq for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.