Struct spitfire_draw::sprite::SpriteTexture
source · pub struct SpriteTexture {
pub sampler: Cow<'static, str>,
pub texture: TextureRef,
pub filtering: GlowTextureFiltering,
}Fields§
§sampler: Cow<'static, str>§texture: TextureRef§filtering: GlowTextureFilteringImplementations§
source§impl SpriteTexture
impl SpriteTexture
pub fn new(sampler: Cow<'static, str>, texture: TextureRef) -> Self
pub fn filtering(self, value: GlowTextureFiltering) -> Self
Trait Implementations§
source§impl Clone for SpriteTexture
impl Clone for SpriteTexture
source§fn clone(&self) -> SpriteTexture
fn clone(&self) -> SpriteTexture
Returns a copy 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 moreAuto Trait Implementations§
impl !RefUnwindSafe for SpriteTexture
impl !Send for SpriteTexture
impl !Sync for SpriteTexture
impl Unpin for SpriteTexture
impl !UnwindSafe for SpriteTexture
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