pub struct Buffer2d<T> { /* private fields */ }Expand description
A 2-dimensional buffer.
This type may be used to contain colour data, depth data, or arbitrary pixel data.
Implementations§
Trait Implementations§
Source§impl<T: Clone> Target for Buffer2d<T>
impl<T: Clone> Target for Buffer2d<T>
Source§unsafe fn set(&mut self, [x, y]: [usize; 2], item: Self::Item)
unsafe fn set(&mut self, [x, y]: [usize; 2], item: Self::Item)
Set the item at the specified location in the target to the given item. The validity of the
location is not checked, and as such this method is marked
unsafe.Auto Trait Implementations§
impl<T> Freeze for Buffer2d<T>
impl<T> RefUnwindSafe for Buffer2d<T>where
T: RefUnwindSafe,
impl<T> Send for Buffer2d<T>where
T: Send,
impl<T> Sync for Buffer2d<T>where
T: Sync,
impl<T> Unpin for Buffer2d<T>where
T: Unpin,
impl<T> UnwindSafe for Buffer2d<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more