Struct gfx_core::handle::Buffer
[−]
[src]
pub struct Buffer<R: Resources, T>(_, _);
Type-safe buffer handle
Methods
impl<R: Resources, T> Buffer<R, T>
[src]
fn get_info(&self) -> &BufferInfo
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: PartialEq + Resources, T: PartialEq> PartialEq for Buffer<R, T>
[src]
fn eq(&self, __arg_0: &Buffer<R, T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Buffer<R, T>) -> bool
This method tests for !=
.
impl<R: Hash + Resources, T: Hash> Hash for Buffer<R, T>
[src]
fn hash<__HRT: Hasher>(&self, __arg_0: &mut __HRT)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl<R: Debug + Resources, T: Debug> Debug for Buffer<R, T>
[src]
impl<R: Clone + Resources, T: Clone> Clone for Buffer<R, T>
[src]
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