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: TTrait 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