pub struct DeclarationNode<'s> {
pub loc: Loc,
pub name: String,
pub name_tokens: Vec<&'s Token<'s>>,
pub value: Vec<Value>,
pub value_tokens: Vec<&'s Token<'s>>,
pub important: bool,
}
Expand description
Represents a CSS declaration
Fields§
§loc: Loc
Location information in the source file
name: String
Decalration name
name_tokens: Vec<&'s Token<'s>>
The tokens that made up the name of the declaration
value: Vec<Value>
Decalration name
value_tokens: Vec<&'s Token<'s>>
The tokens that made up the value of the declaration
important: bool
Whether the value of this declaration defines !important
Trait Implementations§
Source§impl<'s> Debug for DeclarationNode<'s>
impl<'s> Debug for DeclarationNode<'s>
Source§impl<'s> Default for DeclarationNode<'s>
impl<'s> Default for DeclarationNode<'s>
Source§fn default() -> DeclarationNode<'s>
fn default() -> DeclarationNode<'s>
Returns the “default value” for a type. Read more
Source§impl<'s> PartialEq for DeclarationNode<'s>
impl<'s> PartialEq for DeclarationNode<'s>
Source§impl<'s> Serialize for DeclarationNode<'s>
impl<'s> Serialize for DeclarationNode<'s>
impl<'s> StructuralPartialEq for DeclarationNode<'s>
Auto Trait Implementations§
impl<'s> Freeze for DeclarationNode<'s>
impl<'s> !RefUnwindSafe for DeclarationNode<'s>
impl<'s> !Send for DeclarationNode<'s>
impl<'s> !Sync for DeclarationNode<'s>
impl<'s> Unpin for DeclarationNode<'s>
impl<'s> !UnwindSafe for DeclarationNode<'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