pub enum LessMixinName<'s> {
ClassSelector(ClassSelector<'s>),
IdSelector(IdSelector<'s>),
}Variants§
ClassSelector(ClassSelector<'s>)
IdSelector(IdSelector<'s>)
Implementations§
Source§impl<'s> LessMixinName<'s>
impl<'s> LessMixinName<'s>
Sourcepub fn is_class_selector(&self) -> bool
pub fn is_class_selector(&self) -> bool
Checks inner field whether it’s of variant ClassSelector or not.
Sourcepub fn as_class_selector(&self) -> Option<&ClassSelector<'s>>
pub fn as_class_selector(&self) -> Option<&ClassSelector<'s>>
Returns Some with a reference to inner field if it’s of variant ClassSelector, otherwise returns None.
Sourcepub fn is_id_selector(&self) -> bool
pub fn is_id_selector(&self) -> bool
Checks inner field whether it’s of variant IdSelector or not.
Sourcepub fn as_id_selector(&self) -> Option<&IdSelector<'s>>
pub fn as_id_selector(&self) -> Option<&IdSelector<'s>>
Returns Some with a reference to inner field if it’s of variant IdSelector, otherwise returns None.
Trait Implementations§
Source§impl<'s> Clone for LessMixinName<'s>
impl<'s> Clone for LessMixinName<'s>
Source§fn clone(&self) -> LessMixinName<'s>
fn clone(&self) -> LessMixinName<'s>
Returns a duplicate 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<'s> Debug for LessMixinName<'s>
impl<'s> Debug for LessMixinName<'s>
Source§impl<'cmt, 's: 'cmt> Parse<'cmt, 's> for LessMixinName<'s>
impl<'cmt, 's: 'cmt> Parse<'cmt, 's> for LessMixinName<'s>
Source§impl<'s> PartialEq for LessMixinName<'s>
impl<'s> PartialEq for LessMixinName<'s>
Source§impl<'s> SpanIgnoredEq for LessMixinName<'s>
impl<'s> SpanIgnoredEq for LessMixinName<'s>
Source§fn span_ignored_eq(&self, other: &Self) -> bool
fn span_ignored_eq(&self, other: &Self) -> bool
Compare equality of two AST nodes without respecting their spans.
impl<'s> StructuralPartialEq for LessMixinName<'s>
Auto Trait Implementations§
impl<'s> Freeze for LessMixinName<'s>
impl<'s> RefUnwindSafe for LessMixinName<'s>
impl<'s> Send for LessMixinName<'s>
impl<'s> Sync for LessMixinName<'s>
impl<'s> Unpin for LessMixinName<'s>
impl<'s> UnwindSafe for LessMixinName<'s>
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