Enum webrender::scene_building::ShadowItem
source · pub enum ShadowItem {
Shadow(PendingShadow),
Image(PendingPrimitive<Image>),
LineDecoration(PendingPrimitive<LineDecoration>),
NormalBorder(PendingPrimitive<NormalBorderPrim>),
Primitive(PendingPrimitive<PrimitiveKeyKind>),
TextRun(PendingPrimitive<TextRun>),
}
Variants§
Shadow(PendingShadow)
Image(PendingPrimitive<Image>)
LineDecoration(PendingPrimitive<LineDecoration>)
NormalBorder(PendingPrimitive<NormalBorderPrim>)
Primitive(PendingPrimitive<PrimitiveKeyKind>)
TextRun(PendingPrimitive<TextRun>)
Trait Implementations§
source§impl From<PendingPrimitive<Image>> for ShadowItem
impl From<PendingPrimitive<Image>> for ShadowItem
source§fn from(image: PendingPrimitive<Image>) -> Self
fn from(image: PendingPrimitive<Image>) -> Self
Converts to this type from the input type.
source§impl From<PendingPrimitive<LineDecoration>> for ShadowItem
impl From<PendingPrimitive<LineDecoration>> for ShadowItem
source§fn from(line_dec: PendingPrimitive<LineDecoration>) -> Self
fn from(line_dec: PendingPrimitive<LineDecoration>) -> Self
Converts to this type from the input type.
source§impl From<PendingPrimitive<NormalBorderPrim>> for ShadowItem
impl From<PendingPrimitive<NormalBorderPrim>> for ShadowItem
source§fn from(border: PendingPrimitive<NormalBorderPrim>) -> Self
fn from(border: PendingPrimitive<NormalBorderPrim>) -> Self
Converts to this type from the input type.
source§impl From<PendingPrimitive<PrimitiveKeyKind>> for ShadowItem
impl From<PendingPrimitive<PrimitiveKeyKind>> for ShadowItem
source§fn from(container: PendingPrimitive<PrimitiveKeyKind>) -> Self
fn from(container: PendingPrimitive<PrimitiveKeyKind>) -> Self
Converts to this type from the input type.
source§impl From<PendingPrimitive<TextRun>> for ShadowItem
impl From<PendingPrimitive<TextRun>> for ShadowItem
source§fn from(text_run: PendingPrimitive<TextRun>) -> Self
fn from(text_run: PendingPrimitive<TextRun>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ShadowItem
impl RefUnwindSafe for ShadowItem
impl Send for ShadowItem
impl Sync for ShadowItem
impl Unpin for ShadowItem
impl UnwindSafe for ShadowItem
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more