pub struct TextureLink<TextureId: Id> { /* private fields */ }Implementations§
Source§impl<TextureId: Id> TextureLink<TextureId>
impl<TextureId: Id> TextureLink<TextureId>
pub fn new( texture_id: TextureId, create_texture_callback: impl Into<TextureCreateCallback>, ) -> Self
pub fn texture_id(&self) -> &TextureId
pub fn create_texture( &self, gl: WebGl2RenderingContext, now: f64, canvas: HtmlCanvasElement, ) -> WebGlTexture
Trait Implementations§
Source§impl<TextureId: Clone + Id> Clone for TextureLink<TextureId>
impl<TextureId: Clone + Id> Clone for TextureLink<TextureId>
Source§fn clone(&self) -> TextureLink<TextureId>
fn clone(&self) -> TextureLink<TextureId>
Returns a duplicate 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 moreSource§impl<TextureId: Id> Debug for TextureLink<TextureId>
impl<TextureId: Id> Debug for TextureLink<TextureId>
Source§impl<TextureId: Id> Hash for TextureLink<TextureId>
impl<TextureId: Id> Hash for TextureLink<TextureId>
Source§impl<TextureId: Id> PartialEq for TextureLink<TextureId>
impl<TextureId: Id> PartialEq for TextureLink<TextureId>
impl<TextureId: Id> Eq for TextureLink<TextureId>
Auto Trait Implementations§
impl<TextureId> Freeze for TextureLink<TextureId>where
TextureId: Freeze,
impl<TextureId> !RefUnwindSafe for TextureLink<TextureId>
impl<TextureId> !Send for TextureLink<TextureId>
impl<TextureId> !Sync for TextureLink<TextureId>
impl<TextureId> Unpin for TextureLink<TextureId>where
TextureId: Unpin,
impl<TextureId> !UnwindSafe for TextureLink<TextureId>
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