pub struct TextureInner {
pub id: Option<u64>,
pub needs_update: bool,
pub image: RgbaImage,
}Expand description
Stores the inner data to keep track of a texture.
Fields§
§id: Option<u64>Id used by TextureBuffer to look up texture.
needs_update: boolWhether the texture needs to be updated.
image: RgbaImageThe image data associated with a texture.
Auto Trait Implementations§
impl Freeze for TextureInner
impl RefUnwindSafe for TextureInner
impl Send for TextureInner
impl Sync for TextureInner
impl Unpin for TextureInner
impl UnsafeUnpin for TextureInner
impl UnwindSafe for TextureInner
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
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