pub struct StyleProperty {
pub name: KeySegment,
pub value: Scalar,
pub span: Span,
}Expand description
Set one style property, e.g. fill: "#f4a261".
Fields§
§name: KeySegment§value: Scalar§span: SpanTrait Implementations§
Source§impl Clone for StyleProperty
impl Clone for StyleProperty
Source§impl Debug for StyleProperty
impl Debug for StyleProperty
Source§impl PartialEq for StyleProperty
impl PartialEq for StyleProperty
impl StructuralPartialEq for StyleProperty
Auto Trait Implementations§
impl Forget for StyleProperty
impl Freeze for StyleProperty
impl Move for StyleProperty
impl RefUnwindSafe for StyleProperty
impl Send for StyleProperty
impl Sync for StyleProperty
impl Unpin for StyleProperty
impl UnsafeUnpin for StyleProperty
impl UnwindSafe for StyleProperty
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
Source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.