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]
impl<R: Resources, T> Buffer<R, T>pub fn get_info(&self) -> &Info[src]
pub fn get_info(&self) -> &InfoGet the associated information about the buffer
pub fn len(&self) -> usize[src]
pub fn len(&self) -> usizeGet 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]
impl<R: Resources, T> Clone for Buffer<R, T> where
R: Clone, fn clone(&self) -> Self[src]
fn clone(&self) -> SelfReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
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]
impl<R: Resources, T> Debug for Buffer<R, T> where
R: Debug, fn fmt(&self, __f: &mut Formatter) -> Result[src]
fn fmt(&self, __f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<R: Resources, T> Eq for Buffer<R, T> where
R: Eq, [src]
impl<R: Resources, T> Eq for Buffer<R, T> where
R: Eq, impl<R: Resources, T> Hash for Buffer<R, T> where
R: Hash, [src]
impl<R: Resources, T> Hash for Buffer<R, T> where
R: Hash, fn hash<__HRT>(&self, __state: &mut __HRT) where
__HRT: Hasher, [src]
fn hash<__HRT>(&self, __state: &mut __HRT) where
__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]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]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]
impl<R: Resources, T> PartialEq for Buffer<R, T> where
R: PartialEq,