pub struct Buffer<BufferId: Id> { /* private fields */ }Implementations§
Source§impl<BufferId: Id> Buffer<BufferId>
impl<BufferId: Id> Buffer<BufferId>
pub fn new(buffer_id: BufferId, webgl_buffer: WebGlBuffer) -> Self
pub fn buffer_id(&self) -> &BufferId
pub fn webgl_buffer(&self) -> &WebGlBuffer
Trait Implementations§
Source§impl From<&Buffer<String>> for BufferJs
impl From<&Buffer<String>> for BufferJs
Source§fn from(js_buffer_inner: &BufferJsInner) -> Self
fn from(js_buffer_inner: &BufferJsInner) -> Self
Converts to this type from the input type.
Source§impl From<Buffer<String>> for BufferJs
impl From<Buffer<String>> for BufferJs
Source§fn from(js_buffer_inner: BufferJsInner) -> Self
fn from(js_buffer_inner: BufferJsInner) -> Self
Converts to this type from the input type.
Source§impl From<Buffer<String>> for JsValue
impl From<Buffer<String>> for JsValue
Source§fn from(buffer: BufferJsInner) -> Self
fn from(buffer: BufferJsInner) -> Self
Converts to this type from the input type.
impl<BufferId: Id> Eq for Buffer<BufferId>
Auto Trait Implementations§
impl<BufferId> Freeze for Buffer<BufferId>where
BufferId: Freeze,
impl<BufferId> RefUnwindSafe for Buffer<BufferId>where
BufferId: RefUnwindSafe,
impl<BufferId> !Send for Buffer<BufferId>
impl<BufferId> !Sync for Buffer<BufferId>
impl<BufferId> Unpin for Buffer<BufferId>where
BufferId: Unpin,
impl<BufferId> UnwindSafe for Buffer<BufferId>where
BufferId: 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