Struct gfx::handle::Buffer
[−]
[src]
pub struct Buffer<R, T>(_, _)
where
R: Resources;
Type-safe buffer handle
Methods
impl<R, T> Buffer<R, T> where
R: Resources, [src]
R: Resources,
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, T> Typed for Buffer<R, T> where
R: Resources, [src]
R: Resources,
type Raw = RawBuffer<R>
The raw type behind the phantom.
fn new(handle: RawBuffer<R>) -> Buffer<R, T>[src]
Crete a new phantom from the raw type.
fn raw(&self) -> &RawBuffer<R>[src]
Get an internal reference to the raw type.
impl<R, T> PartialEq<Buffer<R, T>> for Buffer<R, T> where
R: Resources + PartialEq<R>,
T: PartialEq<T>, [src]
R: Resources + PartialEq<R>,
T: PartialEq<T>,
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 !=.
impl<R, T> Hash for Buffer<R, T> where
R: Resources + Hash,
T: Hash, [src]
R: Resources + Hash,
T: Hash,
fn hash<__HRT>(&self, __arg_0: &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, T> Debug for Buffer<R, T> where
R: Resources + Debug,
T: Debug, [src]
R: Resources + Debug,
T: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter. Read more
impl<R, T> Clone for Buffer<R, T> where
R: Resources + Clone,
T: Clone, [src]
R: Resources + Clone,
T: Clone,
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: Resources> IntoIndexBuffer<R> for Buffer<R, u16>[src]
fn into_index_buffer<F: Factory<R> + ?Sized>(self, _: &mut F) -> IndexBuffer<R>[src]
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>[src]
Turns self into an IndexBuffer.