pub enum LessElementType {
Show 13 variants
SourceFile,
RuleSet,
SelectorList,
Selector,
DeclarationBlock,
Declaration,
Property,
Value,
AtRule,
MediaQuery,
Function,
Url,
CalcExpression,
}Expand description
Less element type
Variants§
SourceFile
Source file (root)
RuleSet
Rule set
SelectorList
Selector list
Selector
Selector
DeclarationBlock
Declaration block
Declaration
Declaration
Property
Property
Value
Value
AtRule
At-rule
MediaQuery
Media query
Function
Function
Url
Url
CalcExpression
Calc expression
Trait Implementations§
Source§impl Clone for LessElementType
impl Clone for LessElementType
Source§fn clone(&self) -> LessElementType
fn clone(&self) -> LessElementType
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 Debug for LessElementType
impl Debug for LessElementType
Source§impl<'de> Deserialize<'de> for LessElementType
impl<'de> Deserialize<'de> for LessElementType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ElementType for LessElementType
impl ElementType for LessElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this element matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
Returns true if this element matches the specified universal role.
Source§impl From<LessTokenType> for LessElementType
impl From<LessTokenType> for LessElementType
Source§fn from(token: LessTokenType) -> Self
fn from(token: LessTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for LessElementType
impl Hash for LessElementType
Source§impl Ord for LessElementType
impl Ord for LessElementType
Source§fn cmp(&self, other: &LessElementType) -> Ordering
fn cmp(&self, other: &LessElementType) -> Ordering
1.21.0 · 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
Source§impl PartialEq for LessElementType
impl PartialEq for LessElementType
Source§impl PartialOrd for LessElementType
impl PartialOrd for LessElementType
Source§impl Serialize for LessElementType
impl Serialize for LessElementType
impl Copy for LessElementType
impl Eq for LessElementType
impl StructuralPartialEq for LessElementType
Auto Trait Implementations§
impl Freeze for LessElementType
impl RefUnwindSafe for LessElementType
impl Send for LessElementType
impl Sync for LessElementType
impl Unpin for LessElementType
impl UnsafeUnpin for LessElementType
impl UnwindSafe for LessElementType
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