pub struct DisplayList { /* private fields */ }Expand description
owned drawing inputs for a frame
Implementations§
Source§impl DisplayList
impl DisplayList
pub fn commands(&self) -> &[Command]
pub fn clips(&self) -> &[Clip]
pub fn store(&self) -> &FrameStore
pub fn store_mut(&mut self) -> FrameStoreMut<'_>
Sourcepub fn push<T: Compare>(
&mut self,
area: LogicalRect,
bounds: PhysicalRect,
clip: u32,
value: T,
)
pub fn push<T: Compare>( &mut self, area: LogicalRect, bounds: PhysicalRect, clip: u32, value: T, )
records a drawing input
use distinct input types for commands with different rendering behavior
Sourcepub fn input<T: 'static>(&self, index: usize) -> (&T, u32)
pub fn input<T: 'static>(&self, index: usize) -> (&T, u32)
returns the recorded value and its offset in the list’s store
pub fn push_clip(&mut self, clip: Clip) -> u32
pub fn hash(&self, index: usize, state: &mut DisplayHasher)
pub fn equivalent(&self, index: usize, other: &Self, other_index: usize) -> bool
pub fn clear(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DisplayList
impl !Send for DisplayList
impl !Sync for DisplayList
impl Forget for DisplayList
impl Freeze for DisplayListwhere
*const u8 is !null: Freeze,
PhantomData<Command>: Freeze,
PhantomData<Clip>: Freeze,
PhantomData<Block>: Freeze,
PhantomData<(u32, fn(*mut u8))>: Freeze,
PhantomData<*mut ()>: Freeze,
impl Move for DisplayList
impl Unpin for DisplayList
impl UnsafeUnpin for DisplayListwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Command>: UnsafeUnpin,
PhantomData<Clip>: UnsafeUnpin,
PhantomData<Block>: UnsafeUnpin,
PhantomData<(u32, fn(*mut u8))>: UnsafeUnpin,
PhantomData<*mut ()>: UnsafeUnpin,
impl UnwindSafe for DisplayList
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