Struct gfx_core::handle::Buffer [−][src]
Type-safe buffer handle
Implementations
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>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<R: Resources, T> Debug for Buffer<R, T>
[src]
impl<R: Resources, T> Eq for Buffer<R, T>
[src]
impl<R: Resources, T> Hash for Buffer<R, T>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<R: Resources, T> PartialEq<Buffer<R, T>> for Buffer<R, T>
[src]
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>,