pub struct ShapeRef<'a> { /* private fields */ }Expand description
A shape item as a reader sees it: shapes recorded into a chunk that other items share.
Implementations§
Source§impl<'a> ShapeRef<'a>
impl<'a> ShapeRef<'a>
Sourcepub fn recorder(self) -> &'a Arc<ShapeRecorder> ⓘ
pub fn recorder(self) -> &'a Arc<ShapeRecorder> ⓘ
The recorder of the chunk the shapes sit in, which a packet leases.
Sourcepub fn shape_count(self) -> u32
pub fn shape_count(self) -> u32
How many shapes the item draws.
Sourcepub fn coverage(self) -> Option<Rect>
pub fn coverage(self) -> Option<Rect>
The rect the item’s pixels lie within, in its record’s space; None
for an item that draws nothing.
Sourcepub fn print(self) -> u64
pub fn print(self) -> u64
A hash of what the item draws, which the other items of its chunk leave alone.
Sourcepub fn primitives(self) -> impl Iterator<Item = DrawPrimitive> + 'a
pub fn primitives(self) -> impl Iterator<Item = DrawPrimitive> + 'a
The primitives the item draws, in order.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for ShapeRef<'a>
impl<'a> Freeze for ShapeRef<'a>
impl<'a> Move for ShapeRef<'a>
impl<'a> RefUnwindSafe for ShapeRef<'a>
impl<'a> Send for ShapeRef<'a>
impl<'a> Sync for ShapeRef<'a>
impl<'a> Unpin for ShapeRef<'a>
impl<'a> UnsafeUnpin for ShapeRef<'a>
impl<'a> UnwindSafe for ShapeRef<'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