Struct selectors::builder::SpecificityAndFlags
source · pub struct SpecificityAndFlags {
pub(crate) specificity: u32,
pub(crate) flags: SelectorFlags,
}
Fields§
§specificity: u32
There are two free bits here, since we use ten bits for each specificity kind (id, class, element).
flags: SelectorFlags
There’s padding after this field due to the size of the flags.
Trait Implementations§
source§impl Clone for SpecificityAndFlags
impl Clone for SpecificityAndFlags
source§fn clone(&self) -> SpecificityAndFlags
fn clone(&self) -> SpecificityAndFlags
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SpecificityAndFlags
impl Debug for SpecificityAndFlags
source§impl Default for SpecificityAndFlags
impl Default for SpecificityAndFlags
source§fn default() -> SpecificityAndFlags
fn default() -> SpecificityAndFlags
Returns the “default value” for a type. Read more
source§impl PartialEq for SpecificityAndFlags
impl PartialEq for SpecificityAndFlags
source§fn eq(&self, other: &SpecificityAndFlags) -> bool
fn eq(&self, other: &SpecificityAndFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ToShmem for SpecificityAndFlags
impl ToShmem for SpecificityAndFlags
impl Copy for SpecificityAndFlags
impl Eq for SpecificityAndFlags
impl StructuralPartialEq for SpecificityAndFlags
Auto Trait Implementations§
impl Freeze for SpecificityAndFlags
impl RefUnwindSafe for SpecificityAndFlags
impl Send for SpecificityAndFlags
impl Sync for SpecificityAndFlags
impl Unpin for SpecificityAndFlags
impl UnwindSafe for SpecificityAndFlags
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