pub struct LayerPathV0 { /* private fields */ }Expand description
A parser-issued path of decoded CSS identifiers.
Implementations§
Source§impl LayerPathV0
impl LayerPathV0
pub fn segments(&self) -> &[CanonicalLayerIdentifierKeyV0]
pub fn nesting_depth(&self) -> usize
pub fn canonical_name(&self) -> String
pub fn prefix(&self, segment_count: usize) -> Option<Self>
pub fn parent(&self) -> Option<Self>
pub fn local_name(&self) -> &str
pub fn joined(&self, local: &Self) -> Self
Trait Implementations§
Source§impl Clone for LayerPathV0
impl Clone for LayerPathV0
Source§fn clone(&self) -> LayerPathV0
fn clone(&self) -> LayerPathV0
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LayerPathV0
impl Debug for LayerPathV0
impl Eq for LayerPathV0
Source§impl Hash for LayerPathV0
impl Hash for LayerPathV0
Source§impl Ord for LayerPathV0
impl Ord for LayerPathV0
Source§fn cmp(&self, other: &LayerPathV0) -> Ordering
fn cmp(&self, other: &LayerPathV0) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for LayerPathV0
impl PartialEq for LayerPathV0
Source§impl PartialOrd for LayerPathV0
impl PartialOrd for LayerPathV0
impl StructuralPartialEq for LayerPathV0
Auto Trait Implementations§
impl Freeze for LayerPathV0
impl RefUnwindSafe for LayerPathV0
impl Send for LayerPathV0
impl Sync for LayerPathV0
impl Unpin for LayerPathV0
impl UnsafeUnpin for LayerPathV0
impl UnwindSafe for LayerPathV0
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.