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