pub struct CommandRecording { /* private fields */ }Expand description
One draw command’s recording in compact typed form: pure-numeric records
for the common solid shapes (no Brush destructor branch, roughly half
the bytes of the DrawPrimitive they materialize into) and ordinary
primitives for everything else, with tape preserving global order. The
index each tape entry carries into its per-kind store is the stable
compact handle for the rare resource-bearing entries (others holds
gradients, images, text, blends, and content markers whole).
Implementations§
Source§impl CommandRecording
impl CommandRecording
Sourcepub fn materialize_range(
&self,
tape_start: usize,
tape_end: usize,
) -> Option<Vec<DrawPrimitive>>
pub fn materialize_range( &self, tape_start: usize, tape_end: usize, ) -> Option<Vec<DrawPrimitive>>
Materializes one tape range into fresh primitives — the emergency
path for a bypassed span whose retained draw fell through. None
when the range does not lie within this recording (cleared buffers,
stale range).
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for CommandRecording
impl Clone for CommandRecording
Source§fn clone(&self) -> CommandRecording
fn clone(&self) -> CommandRecording
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandRecording
impl Debug for CommandRecording
Source§impl Default for CommandRecording
impl Default for CommandRecording
Source§fn default() -> CommandRecording
fn default() -> CommandRecording
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Send for CommandRecording
impl !Sync for CommandRecording
impl Freeze for CommandRecording
impl RefUnwindSafe for CommandRecording
impl Unpin for CommandRecording
impl UnsafeUnpin for CommandRecording
impl UnwindSafe for CommandRecording
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