pub struct TexturesDelta {
pub set: HashMap<TextureId, SmallVec<[ImageDelta; 1]>>,
pub free: HashSet<TextureId>,
}Expand description
What has been allocated and freed during the last period.
These are commands given to the integration painter.
Fields§
§set: HashMap<TextureId, SmallVec<[ImageDelta; 1]>>New or changed textures. Apply before painting.
free: HashSet<TextureId>Textures to free after painting.
Implementations§
Source§impl TexturesDelta
impl TexturesDelta
pub fn is_empty(&self) -> bool
Sourcepub fn push(&mut self, id: TextureId, delta: ImageDelta)
pub fn push(&mut self, id: TextureId, delta: ImageDelta)
Inserts a ImageDelta.
If this TexturesDelta already contains this TextureId, and this is a whole delta,
the previous deltas for this id are discarded.
pub fn free(&mut self, id: TextureId)
pub fn append(&mut self, newer: Self)
pub fn clear(&mut self)
Trait Implementations§
Source§impl Clone for TexturesDelta
impl Clone for TexturesDelta
Source§fn clone(&self) -> TexturesDelta
fn clone(&self) -> TexturesDelta
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 TexturesDelta
impl Debug for TexturesDelta
Source§impl Default for TexturesDelta
impl Default for TexturesDelta
Source§fn default() -> TexturesDelta
fn default() -> TexturesDelta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TexturesDelta
impl<'de> Deserialize<'de> for TexturesDelta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Drop for TexturesDelta
impl Drop for TexturesDelta
impl Eq for TexturesDelta
Source§impl PartialEq for TexturesDelta
impl PartialEq for TexturesDelta
Source§impl Serialize for TexturesDelta
impl Serialize for TexturesDelta
impl StructuralPartialEq for TexturesDelta
Auto Trait Implementations§
impl Freeze for TexturesDelta
impl RefUnwindSafe for TexturesDelta
impl Send for TexturesDelta
impl Sync for TexturesDelta
impl Unpin for TexturesDelta
impl UnsafeUnpin for TexturesDelta
impl UnwindSafe for TexturesDelta
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more