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) -> &Info[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: Resources, T> Clone for Buffer<R, T> where
R: Clone, [src]
R: Clone,
fn clone(&self) -> Self[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: Resources, T> Debug for Buffer<R, T> where
R: Debug, [src]
R: Debug,
fn fmt(&self, __f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl<R: Resources, T> Eq for Buffer<R, T> where
R: Eq, [src]
R: Eq,
impl<R: Resources, T> Hash for Buffer<R, T> where
R: Hash, [src]
R: Hash,
fn hash<__HRT>(&self, __state: &mut __HRT) where
__HRT: Hasher, [src]
__HRT: Hasher,
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: Resources, T> PartialEq for Buffer<R, T> where
R: PartialEq, [src]
R: PartialEq,