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]
pub fn get_info(&self) -> &BufferInfo[src]
Get the associated information about the buffer
pub fn len(&self) -> usize[src]
Get the number of elements in the buffer.
Fails if T is zero-sized.
Trait Implementations
impl<R: Clone + Resources, T: Clone> Clone for Buffer<R, T>[src]
fn clone(&self) -> Buffer<R, T>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<R: Debug + Resources, T: Debug> Debug for Buffer<R, T>[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl<R: Hash + Resources, T: Hash> Hash for Buffer<R, T>[src]
fn hash<__HRT: Hasher>(&self, __arg_0: &mut __HRT)[src]
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl<R: PartialEq + Resources, T: PartialEq> PartialEq for Buffer<R, T>[src]
fn eq(&self, __arg_0: &Buffer<R, T>) -> bool[src]
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[src]
This method tests for !=.