pub struct DisplayList { /* private fields */ }Implementations§
Source§impl DisplayList
impl DisplayList
Sourcepub fn storage_bytes(&self) -> usize
pub fn storage_bytes(&self) -> usize
Allocated command capacity, excluding shared and nested command payloads.
pub const fn new() -> Self
pub fn push_quad(&mut self, quad: Quad)
pub fn push_image(&mut self, image: ImagePrimitive)
pub fn push_vector(&mut self, vector: VectorPrimitive)
pub fn push_text(&mut self, block: usize)
pub fn push_text_transformed( &mut self, block: usize, transform: Affine2D, clips: ClipChain, )
pub fn begin_layer(&mut self, style: LayerStyle)
pub fn end_layer(&mut self)
pub fn clear(&mut self)
pub fn extend(&mut self, commands: impl IntoIterator<Item = DisplayCommand>)
pub const fn len(&self) -> usize
pub const fn is_empty(&self) -> bool
pub fn commands(&self) -> &[DisplayCommand]
pub const fn quad_count(&self) -> usize
pub fn validate(&self) -> Result<(), DisplayListError>
Trait Implementations§
Source§impl Clone for DisplayList
impl Clone for DisplayList
Source§fn clone(&self) -> DisplayList
fn clone(&self) -> DisplayList
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 DisplayList
impl Debug for DisplayList
Source§impl Default for DisplayList
impl Default for DisplayList
Source§fn default() -> DisplayList
fn default() -> DisplayList
Returns the “default value” for a type. Read more
Source§impl PartialEq for DisplayList
impl PartialEq for DisplayList
impl StructuralPartialEq for DisplayList
Auto Trait Implementations§
impl Freeze for DisplayList
impl RefUnwindSafe for DisplayList
impl Send for DisplayList
impl Sync for DisplayList
impl Unpin for DisplayList
impl UnsafeUnpin for DisplayList
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