Struct selectors::parser::SelectorKey
source · pub struct SelectorKey(usize);
Expand description
Uniquely identify a selector based on its components, which is behind ThinArc and is therefore stable.
Tuple Fields§
§0: usize
Implementations§
source§impl SelectorKey
impl SelectorKey
sourcepub fn new<Impl: SelectorImpl>(selector: &Selector<Impl>) -> Self
pub fn new<Impl: SelectorImpl>(selector: &Selector<Impl>) -> Self
Create a new key based on the given selector.
Trait Implementations§
source§impl Clone for SelectorKey
impl Clone for SelectorKey
source§fn clone(&self) -> SelectorKey
fn clone(&self) -> SelectorKey
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 Hash for SelectorKey
impl Hash for SelectorKey
source§impl PartialEq for SelectorKey
impl PartialEq for SelectorKey
source§fn eq(&self, other: &SelectorKey) -> bool
fn eq(&self, other: &SelectorKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SelectorKey
impl Eq for SelectorKey
impl StructuralPartialEq for SelectorKey
Auto Trait Implementations§
impl Freeze for SelectorKey
impl RefUnwindSafe for SelectorKey
impl Send for SelectorKey
impl Sync for SelectorKey
impl Unpin for SelectorKey
impl UnwindSafe for SelectorKey
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