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]

[src]

Get the associated information about the buffer

[src]

Get the number of elements in the buffer.

Fails if T is zero-sized.

Trait Implementations

impl<R, T> Clone for Buffer<R, T> where
    R: Resources + Clone
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<R, T> Hash for Buffer<R, T> where
    R: Resources + Hash
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<R, T> PartialEq<Buffer<R, T>> for Buffer<R, T> where
    R: Resources + PartialEq<R>, 
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl<R, T> Debug for Buffer<R, T> where
    R: Resources + Debug
[src]

[src]

Formats the value using the given formatter.

impl<R, T> Eq for Buffer<R, T> where
    R: Resources + Eq
[src]

impl<R: Resources> IntoIndexBuffer<R> for Buffer<R, u16>
[src]

[src]

Turns self into an IndexBuffer.

impl<R: Resources> IntoIndexBuffer<R> for Buffer<R, u32>
[src]

[src]

Turns self into an IndexBuffer.