pub struct Texture<TextureId: Id> { /* private fields */ }Implementations§
Source§impl<TextureId: Id> Texture<TextureId>
impl<TextureId: Id> Texture<TextureId>
pub fn new(texture_id: TextureId, webgl_texture: WebGlTexture) -> Self
pub fn texture_id(&self) -> &TextureId
pub fn webgl_texture(&self) -> &WebGlTexture
Trait Implementations§
Source§impl From<&Texture<String>> for TextureJs
impl From<&Texture<String>> for TextureJs
Source§fn from(js_texture_inner: &TextureJsInner) -> Self
fn from(js_texture_inner: &TextureJsInner) -> Self
Converts to this type from the input type.
Source§impl From<Texture<String>> for JsValue
impl From<Texture<String>> for JsValue
Source§fn from(texture: TextureJsInner) -> Self
fn from(texture: TextureJsInner) -> Self
Converts to this type from the input type.
Source§impl From<Texture<String>> for TextureJs
impl From<Texture<String>> for TextureJs
Source§fn from(js_texture_inner: TextureJsInner) -> Self
fn from(js_texture_inner: TextureJsInner) -> Self
Converts to this type from the input type.
impl<TextureId: Id> Eq for Texture<TextureId>
Auto Trait Implementations§
impl<TextureId> Freeze for Texture<TextureId>where
TextureId: Freeze,
impl<TextureId> RefUnwindSafe for Texture<TextureId>where
TextureId: RefUnwindSafe,
impl<TextureId> !Send for Texture<TextureId>
impl<TextureId> !Sync for Texture<TextureId>
impl<TextureId> Unpin for Texture<TextureId>where
TextureId: Unpin,
impl<TextureId> UnwindSafe for Texture<TextureId>where
TextureId: 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