pub struct Styles {
pub classes: BTreeSet<Arc<str>>,
pub dynamic: Vec<Dynamic>,
pub named: Vec<Named>,
}Expand description
Every class a program’s pages can carry, and every place one could not be worked out.
Fields§
§classes: BTreeSet<Arc<str>>The class names, deduplicated and in order. A class="" contributes nothing rather than an
empty token, because that is what the browser does with it.
dynamic: Vec<Dynamic>The class= sites whose value is not enumerable, in the order they were found.
named: Vec<Named>Every literal that reaches a class=, with where it was written.
Styles::classes is the set a sheet is emitted from and has no positions, because a name
written in three places is one rule. This is the other question — where did this name come
from — and it is what a diagnostic needs, so it keeps one entry per site rather than one
per name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Styles
impl RefUnwindSafe for Styles
impl Send for Styles
impl Sync for Styles
impl Unpin for Styles
impl UnwindSafe for Styles
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