pub struct ResolvedShadowLayer {
pub dx: f64,
pub dy: f64,
pub blur: f64,
pub color_token: String,
}Expand description
A single resolved shadow layer: offsets and blur (pixels) plus the id of the color token this layer renders with.
Fields§
§dx: f64§dy: f64§blur: f64§color_token: StringTrait Implementations§
Source§impl Clone for ResolvedShadowLayer
impl Clone for ResolvedShadowLayer
Source§fn clone(&self) -> ResolvedShadowLayer
fn clone(&self) -> ResolvedShadowLayer
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 ResolvedShadowLayer
impl Debug for ResolvedShadowLayer
Source§impl PartialEq for ResolvedShadowLayer
impl PartialEq for ResolvedShadowLayer
Source§fn eq(&self, other: &ResolvedShadowLayer) -> bool
fn eq(&self, other: &ResolvedShadowLayer) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResolvedShadowLayer
Auto Trait Implementations§
impl Freeze for ResolvedShadowLayer
impl RefUnwindSafe for ResolvedShadowLayer
impl Send for ResolvedShadowLayer
impl Sync for ResolvedShadowLayer
impl Unpin for ResolvedShadowLayer
impl UnsafeUnpin for ResolvedShadowLayer
impl UnwindSafe for ResolvedShadowLayer
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