pub struct ColorQuadPixel { /* private fields */ }Trait Implementations§
Source§impl Clone for ColorQuadPixel
impl Clone for ColorQuadPixel
Source§fn clone(&self) -> ColorQuadPixel
fn clone(&self) -> ColorQuadPixel
Returns a duplicate 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 From<ColorQuadPixel> for DataCell
impl From<ColorQuadPixel> for DataCell
Source§fn from(val: ColorQuadPixel) -> Self
fn from(val: ColorQuadPixel) -> Self
Converts to this type from the input type.
Source§impl Pixel for ColorQuadPixel
impl Pixel for ColorQuadPixel
type U = TerminalColor
fn pixels(&self) -> &[Self::U; 4]
fn pixels_mut(&mut self) -> &mut [Self::U; 4]
fn new(pixels: [Self::U; 4]) -> Self
Source§fn subpixel(&self, x: usize, y: usize) -> Result<Self::U, String>
fn subpixel(&self, x: usize, y: usize) -> Result<Self::U, String>
Returns the value of the block at the specified coordinates. Read more
Source§fn set_subpixel(
&mut self,
x: usize,
y: usize,
value: Self::U,
) -> Result<(), String>
fn set_subpixel( &mut self, x: usize, y: usize, value: Self::U, ) -> Result<(), String>
Returns the value of the block at the specified coordinates. Read more
Source§fn build(args: &[Self::U]) -> Result<Self, String>
fn build(args: &[Self::U]) -> Result<Self, String>
Builds a block of pixels from a slice of pixels. Read more
fn subpixel_static<const X: usize, const Y: usize>(&self) -> Self::U
fn set_subpixel_static<const X: usize, const Y: usize>( &mut self, value: Self::U, )
impl Copy for ColorQuadPixel
Auto Trait Implementations§
impl Freeze for ColorQuadPixel
impl RefUnwindSafe for ColorQuadPixel
impl Send for ColorQuadPixel
impl Sync for ColorQuadPixel
impl Unpin for ColorQuadPixel
impl UnwindSafe for ColorQuadPixel
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