#[repr(C)]pub struct SixelChar(/* private fields */);
Expand description
Represents a valid Sixel character.
The sixel data characters are characters in the range of ? (hex 3F)
to ~ (hex 7E)
.
Each sixel data character represents six vertical pixels of data.
Each sixel data character represents a binary value equal to the character code value minus hex 3F.
Examples
? (hex 3F)
represents the binary value000000
.t (hex 74)
represents the binary value110101
.~ (hex 7E)
represents the binary value111111
.
Implementations§
Source§impl SixelChar
impl SixelChar
Sourcepub fn from_plane(
plane: &RgbSixelBytes,
six_idx: usize,
hits: &[u8],
threshold: u8,
) -> Self
pub fn from_plane( plane: &RgbSixelBytes, six_idx: usize, hits: &[u8], threshold: u8, ) -> Self
Converts a RgbSixelBytes of monochrome pixels into a SixelChar.
Parameters:
plane
: six vertical pixel bytes representing a single hue intensity.six_idx
: sixel index for the RgbSixelBytes
Sourcepub fn from_index(six_idx: usize) -> Self
pub fn from_index(six_idx: usize) -> Self
Converts a RgbBytes into a SixelChar.
Parameters:
plane
: six vertical pixel bytes representing a single hue intensity.six_idx
: sixel index for the RgbSixelBytes
Trait Implementations§
Source§impl From<&[[u8; 3]; 6]> for SixelChar
impl From<&[[u8; 3]; 6]> for SixelChar
Source§fn from(val: &RgbSixelBytes) -> Self
fn from(val: &RgbSixelBytes) -> Self
Converts to this type from the input type.
Source§impl From<[[u8; 3]; 6]> for SixelChar
impl From<[[u8; 3]; 6]> for SixelChar
Source§fn from(val: RgbSixelBytes) -> Self
fn from(val: RgbSixelBytes) -> Self
Converts to this type from the input type.
impl Copy for SixelChar
impl StructuralPartialEq for SixelChar
Auto Trait Implementations§
impl Freeze for SixelChar
impl RefUnwindSafe for SixelChar
impl Send for SixelChar
impl Sync for SixelChar
impl Unpin for SixelChar
impl UnwindSafe for SixelChar
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