pub struct ShadowLiteral {
pub layers: Vec<ShadowLayerRef>,
}Expand description
A shadow token literal: an ordered list of shadow layers (e.g. a drop shadow plus an outer glow). At least one layer is required (enforced at resolution).
Fields§
§layers: Vec<ShadowLayerRef>Ordered list of layer references, in source order.
Trait Implementations§
Source§impl Clone for ShadowLiteral
impl Clone for ShadowLiteral
Source§fn clone(&self) -> ShadowLiteral
fn clone(&self) -> ShadowLiteral
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 Debug for ShadowLiteral
impl Debug for ShadowLiteral
Source§impl PartialEq for ShadowLiteral
impl PartialEq for ShadowLiteral
Source§fn eq(&self, other: &ShadowLiteral) -> bool
fn eq(&self, other: &ShadowLiteral) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShadowLiteral
Auto Trait Implementations§
impl Freeze for ShadowLiteral
impl RefUnwindSafe for ShadowLiteral
impl Send for ShadowLiteral
impl Sync for ShadowLiteral
impl Unpin for ShadowLiteral
impl UnsafeUnpin for ShadowLiteral
impl UnwindSafe for ShadowLiteral
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