pub struct Declaration<'s> {
pub name: InterpolableIdent<'s>,
pub name_suffix: Option<char>,
pub colon_span: Span,
pub value: Vec<ComponentValue<'s>>,
pub important: Option<ImportantAnnotation<'s>>,
pub less_property_merge: Option<LessPropertyMerge>,
pub span: Span,
}Fields§
§name: InterpolableIdent<'s>§name_suffix: Option<char>§colon_span: Span§value: Vec<ComponentValue<'s>>§important: Option<ImportantAnnotation<'s>>§less_property_merge: Option<LessPropertyMerge>§span: SpanTrait Implementations§
Source§impl<'s> Clone for Declaration<'s>
impl<'s> Clone for Declaration<'s>
Source§fn clone(&self) -> Declaration<'s>
fn clone(&self) -> Declaration<'s>
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<'s> Debug for Declaration<'s>
impl<'s> Debug for Declaration<'s>
Source§impl<'cmt, 's: 'cmt> Parse<'cmt, 's> for Declaration<'s>
impl<'cmt, 's: 'cmt> Parse<'cmt, 's> for Declaration<'s>
Source§impl<'s> PartialEq for Declaration<'s>
impl<'s> PartialEq for Declaration<'s>
Source§fn eq(&self, other: &Declaration<'s>) -> bool
fn eq(&self, other: &Declaration<'s>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'s> StructuralPartialEq for Declaration<'s>
Auto Trait Implementations§
impl<'s> Freeze for Declaration<'s>
impl<'s> RefUnwindSafe for Declaration<'s>
impl<'s> Send for Declaration<'s>
impl<'s> Sync for Declaration<'s>
impl<'s> Unpin for Declaration<'s>
impl<'s> UnsafeUnpin for Declaration<'s>
impl<'s> UnwindSafe for Declaration<'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