pub enum SassElementType {
Show 26 variants
SourceFile,
Root,
Selector,
Variable,
Mixin,
Function,
Value,
Object,
Array,
String,
Number,
Boolean,
Null,
ObjectEntry,
ArrayElement,
ErrorNode,
LeftBrace,
RightBrace,
LeftBracket,
RightBracket,
Comma,
Colon,
Whitespace,
Comment,
Eof,
Error,
}Expand description
Element types for the Sass language.
Variants§
SourceFile
A source file.
Root
The root node.
Selector
A selector.
Variable
A variable declaration.
Mixin
A mixin declaration.
Function
A function declaration.
Value
A value.
Object
An object.
Array
An array.
String
A string literal.
Number
A numeric literal.
Boolean
A boolean literal.
Null
A null literal.
ObjectEntry
An entry in an object.
ArrayElement
An element in an array.
ErrorNode
An error node.
LeftBrace
A left brace {.
RightBrace
A right brace }.
LeftBracket
A left bracket [.
RightBracket
A right bracket ].
Comma
A comma ,.
Colon
A colon :.
Whitespace
Whitespace.
Comment
A comment.
Eof
End of file marker.
Error
Syntax error.
Trait Implementations§
Source§impl Clone for SassElementType
impl Clone for SassElementType
Source§fn clone(&self) -> SassElementType
fn clone(&self) -> SassElementType
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 SassElementType
impl Debug for SassElementType
Source§impl<'de> Deserialize<'de> for SassElementType
impl<'de> Deserialize<'de> for SassElementType
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 SassElementType
impl ElementType for SassElementType
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<SassTokenType> for SassElementType
impl From<SassTokenType> for SassElementType
Source§fn from(token: SassTokenType) -> Self
fn from(token: SassTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for SassElementType
impl Hash for SassElementType
Source§impl PartialEq for SassElementType
impl PartialEq for SassElementType
Source§impl Serialize for SassElementType
impl Serialize for SassElementType
impl Copy for SassElementType
impl Eq for SassElementType
impl StructuralPartialEq for SassElementType
Auto Trait Implementations§
impl Freeze for SassElementType
impl RefUnwindSafe for SassElementType
impl Send for SassElementType
impl Sync for SassElementType
impl Unpin for SassElementType
impl UnsafeUnpin for SassElementType
impl UnwindSafe for SassElementType
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