pub enum ItemRef<'a> {
Layer(LayerRef<'a>),
Leaf(LayerRef<'a>),
Draw(&'a DrawPrimitiveNode),
Text(&'a TextPrimitiveNode),
Run(&'a DrawRunNode),
Shape(ShapeRef<'a>),
}Expand description
One item of a record, in draw order.
Variants§
Layer(LayerRef<'a>)
A child layer: a node’s layer, a wrapper or a draw group.
Leaf(LayerRef<'a>)
A layout node drawn in this record’s layer, placed by a translation.
Draw(&'a DrawPrimitiveNode)
A draw primitive with its clip.
Text(&'a TextPrimitiveNode)
A text.
Run(&'a DrawRunNode)
A run of one draw command’s primitives.
Shape(ShapeRef<'a>)
Shapes the store keeps in a chunk it shares among shape items.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ItemRef<'a>
impl<'a> !Send for ItemRef<'a>
impl<'a> !Sync for ItemRef<'a>
impl<'a> !UnwindSafe for ItemRef<'a>
impl<'a> Forget for ItemRef<'a>
impl<'a> Freeze for ItemRef<'a>
impl<'a> Move for ItemRef<'a>
impl<'a> Unpin for ItemRef<'a>
impl<'a> UnsafeUnpin for ItemRef<'a>
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