Struct webrender::scene_building::PendingPrimitive
source · pub struct PendingPrimitive<T> {
spatial_node_index: SpatialNodeIndex,
clip_node_id: ClipNodeId,
info: LayoutPrimitiveInfo,
prim: T,
}
Expand description
A primitive that is added while a shadow context is active is stored as a pending primitive and only added to pictures during pop_all_shadows.
Fields§
§spatial_node_index: SpatialNodeIndex
§clip_node_id: ClipNodeId
§info: LayoutPrimitiveInfo
§prim: T
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<T> Freeze for PendingPrimitive<T>where
T: Freeze,
impl<T> RefUnwindSafe for PendingPrimitive<T>where
T: RefUnwindSafe,
impl<T> Send for PendingPrimitive<T>where
T: Send,
impl<T> Sync for PendingPrimitive<T>where
T: Sync,
impl<T> Unpin for PendingPrimitive<T>where
T: Unpin,
impl<T> UnwindSafe for PendingPrimitive<T>where
T: UnwindSafe,
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