pub struct DrawCacheBuilder { /* private fields */ }Implementations§
Source§impl DrawCacheBuilder
impl DrawCacheBuilder
pub fn on_draw_behind(&mut self, f: impl Fn(&mut dyn DrawScope) + 'static)
pub fn on_draw_with_content(&mut self, f: impl Fn(&mut dyn DrawScope) + 'static)
pub fn finish(self) -> Vec<DrawCommand>
Trait Implementations§
Source§impl Clone for DrawCacheBuilder
impl Clone for DrawCacheBuilder
Source§fn clone(&self) -> DrawCacheBuilder
fn clone(&self) -> DrawCacheBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for DrawCacheBuilder
impl Default for DrawCacheBuilder
Source§fn default() -> DrawCacheBuilder
fn default() -> DrawCacheBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DrawCacheBuilder
impl !RefUnwindSafe for DrawCacheBuilder
impl !Send for DrawCacheBuilder
impl !Sync for DrawCacheBuilder
impl Unpin for DrawCacheBuilder
impl !UnwindSafe for DrawCacheBuilder
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