pub struct BlitCache<T> { /* private fields */ }Expand description
BlitCache is used if there is chance that you might have to render the same thing multiple times without moving or changing it.
Implementations§
source§impl<T> BlitCache<T>where
T: PartialEq<T>,
impl<T> BlitCache<T>where T: PartialEq<T>,
pub const DEFAULT: BlitCache<T> = _
pub fn new(independent: Vec<T>, dependent: Vec<Vec2D>) -> Self
pub fn is_default(&self) -> bool
sourcepub fn dependent(&self) -> Option<Vec<Vec2D>>
pub fn dependent(&self) -> Option<Vec<Vec2D>>
Returns the stored dependent value. Returns None if the cache is set to its default
pub fn is_cache_valid(&self, other_independent: &Vec<T>) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for BlitCache<T>where T: RefUnwindSafe,
impl<T> Send for BlitCache<T>where T: Send,
impl<T> Sync for BlitCache<T>where T: Sync,
impl<T> Unpin for BlitCache<T>where T: Unpin,
impl<T> UnwindSafe for BlitCache<T>where T: UnwindSafe,
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