pub struct SpriteTexture {
pub sampler: Cow<'static, str>,
pub texture: TextureRef,
pub filtering: GlowTextureFiltering,
}
Fields§
§sampler: Cow<'static, str>
§texture: TextureRef
§filtering: GlowTextureFiltering
Implementations§
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 Freeze for SpriteTexture
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