Struct simple_blit::SingleValueBuffer
source · pub struct SingleValueBuffer<T> {
pub width: u32,
pub height: u32,
pub value: T,
}Expand description
A ‘buffer’ that holds a single value, like a plain-colored rectangle.
Fields§
§width: u32Buffer width.
height: u32Buffer height.
value: TStored value, likely a color.
Implementations§
Trait Implementations§
source§impl<T> Buffer<T> for SingleValueBuffer<T>
impl<T> Buffer<T> for SingleValueBuffer<T>
source§impl<T: Clone> Clone for SingleValueBuffer<T>
impl<T: Clone> Clone for SingleValueBuffer<T>
source§fn clone(&self) -> SingleValueBuffer<T>
fn clone(&self) -> SingleValueBuffer<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<T: Debug> Debug for SingleValueBuffer<T>
impl<T: Debug> Debug for SingleValueBuffer<T>
source§impl<T: PartialEq> PartialEq for SingleValueBuffer<T>
impl<T: PartialEq> PartialEq for SingleValueBuffer<T>
source§fn eq(&self, other: &SingleValueBuffer<T>) -> bool
fn eq(&self, other: &SingleValueBuffer<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<T: Copy> Copy for SingleValueBuffer<T>
impl<T: Eq> Eq for SingleValueBuffer<T>
impl<T> StructuralEq for SingleValueBuffer<T>
impl<T> StructuralPartialEq for SingleValueBuffer<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for SingleValueBuffer<T>where
T: RefUnwindSafe,
impl<T> Send for SingleValueBuffer<T>where
T: Send,
impl<T> Sync for SingleValueBuffer<T>where
T: Sync,
impl<T> Unpin for SingleValueBuffer<T>where
T: Unpin,
impl<T> UnwindSafe for SingleValueBuffer<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