Struct gfx::handle::Buffer [−][src]
Type-safe buffer handle
Implementations
impl<R, T> Buffer<R, T> where
R: Resources,
[src]
R: Resources,
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, T> Clone for Buffer<R, T> where
R: Resources,
[src]
R: Resources,
impl<R, T> Debug for Buffer<R, T> where
R: Resources,
[src]
R: Resources,
impl<R, T> Eq for Buffer<R, T> where
R: Resources,
[src]
R: Resources,
impl<R, T> Hash for Buffer<R, T> where
R: Resources,
[src]
R: Resources,
pub fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<R: Resources> IntoIndexBuffer<R> for Buffer<R, u16>
[src]
fn into_index_buffer<F: Factory<R> + ?Sized>(self, _: &mut F) -> IndexBuffer<R>
[src]
impl<R: Resources> IntoIndexBuffer<R> for Buffer<R, u32>
[src]
fn into_index_buffer<F: Factory<R> + ?Sized>(self, _: &mut F) -> IndexBuffer<R>
[src]
impl<R, T> PartialEq<Buffer<R, T>> for Buffer<R, T> where
R: Resources,
[src]
R: Resources,
Auto Trait Implementations
impl<R, T> !RefUnwindSafe for Buffer<R, T>
impl<R, T> Send for Buffer<R, T> where
T: Send,
T: Send,
impl<R, T> Sync for Buffer<R, T> where
T: Sync,
T: Sync,
impl<R, T> Unpin for Buffer<R, T> where
T: Unpin,
T: Unpin,
impl<R, T> !UnwindSafe for Buffer<R, T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,