pub struct Bucket { /* private fields */ }Expand description
The rules of one place in the order: one cascade layer, one set of
conditions, and one shorthand rank, or one @keyframes rule.
Rules in one bucket never set the same property on the same element, so
their order among themselves does not matter. A page writes each bucket as
its own <style> element, so the runtime can add the rules a patch brings
to the right bucket, or insert a new bucket at its place in the order.
Implementations§
Source§impl Bucket
impl Bucket
Sourcepub fn sort_key(&self) -> &str
pub fn sort_key(&self) -> &str
A string that sorts the way buckets are ordered: 0 for LAYER or
1 for TOGGLED_LAYER, a space, and the sublayer name, whose fixed
fields compare as strings the way the buckets do. A @keyframes rule,
which no order affects, is 2, a space, and its name.
Trait Implementations§
impl Eq for Bucket
impl StructuralPartialEq for Bucket
Auto Trait Implementations§
impl Freeze for Bucket
impl RefUnwindSafe for Bucket
impl Send for Bucket
impl Sync for Bucket
impl Unpin for Bucket
impl UnsafeUnpin for Bucket
impl UnwindSafe for Bucket
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