Struct gfx::handle::Buffer
[−]
pub struct Buffer<R, T>(_, _) where R: Resources;
Type-safe buffer handle
Methods
impl<R, T> Buffer<R, T> where R: Resources
fn get_info(&self) -> &Info
Get the associated information about the buffer
fn len(&self) -> usize
Get the number of elements in the buffer.
Fails if T
is zero-sized.
Trait Implementations
impl<R, T> Debug for Buffer<R, T> where R: Resources + Debug, T: Debug
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl<R, T> PartialEq<Buffer<R, T>> for Buffer<R, T> where R: Resources
fn eq(&self, other: &Buffer<R, T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl<R, T> Hash for Buffer<R, T> where R: Resources
impl<R, T> Eq for Buffer<R, T> where R: Resources
impl<R, T> Clone for Buffer<R, T> where R: Resources + Clone, T: Clone
fn clone(&self) -> Buffer<R, T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<R: Resources> IntoIndexBuffer<R> for Buffer<R, u16>
[src]
fn into_index_buffer<F: Factory<R> + ?Sized>(self, _: &mut F) -> IndexBuffer<R>
Turns self into an IndexBuffer
.
impl<R: Resources> IntoIndexBuffer<R> for Buffer<R, u32>
[src]
fn into_index_buffer<F: Factory<R> + ?Sized>(self, _: &mut F) -> IndexBuffer<R>
Turns self into an IndexBuffer
.