pub struct ColorDualPixel { /* private fields */ }Trait Implementations§
Source§impl Clone for ColorDualPixel
impl Clone for ColorDualPixel
Source§fn clone(&self) -> ColorDualPixel
fn clone(&self) -> ColorDualPixel
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<ColorDualPixel> for DataCell
impl From<ColorDualPixel> for DataCell
Source§fn from(val: ColorDualPixel) -> Self
fn from(val: ColorDualPixel) -> Self
Converts to this type from the input type.
Source§impl Pixel for ColorDualPixel
impl Pixel for ColorDualPixel
type U = TerminalColor
fn pixels(&self) -> &[Self::U; 2]
fn pixels_mut(&mut self) -> &mut [Self::U; 2]
fn new(pixels: [Self::U; 2]) -> 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 ColorDualPixel
Auto Trait Implementations§
impl Freeze for ColorDualPixel
impl RefUnwindSafe for ColorDualPixel
impl Send for ColorDualPixel
impl Sync for ColorDualPixel
impl Unpin for ColorDualPixel
impl UnwindSafe for ColorDualPixel
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