#[non_exhaustive]pub enum Primitive {
Quad(Quad),
Glyphs(GlyphRun),
Image(ImageQuad),
Path(PathFill),
PushClip(Rect),
PopClip,
}Expand description
One entry of the display list.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Quad(Quad)
A rounded rectangle.
Glyphs(GlyphRun)
A run of shaped glyphs.
Image(ImageQuad)
A textured rectangle.
Path(PathFill)
A filled shape made of curves.
PushClip(Rect)
Restricts everything until the matching Primitive::PopClip to the
intersection of this rectangle and the enclosing clip.
PopClip
Restores the clip active before the matching Primitive::PushClip.
Trait Implementations§
impl StructuralPartialEq for Primitive
Auto Trait Implementations§
impl !RefUnwindSafe for Primitive
impl !UnwindSafe for Primitive
impl Freeze for Primitive
impl Send for Primitive
impl Sync for Primitive
impl Unpin for Primitive
impl UnsafeUnpin for Primitive
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