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