pub enum SixelEvent {
ColorIntroducer {
color_number: u16,
color_coordinate_system: Option<ColorCoordinateSystem>,
},
RasterAttribute {
pan: usize,
pad: usize,
ph: Option<usize>,
pv: Option<usize>,
},
Data {
byte: u8,
},
Repeat {
repeat_count: usize,
byte_to_repeat: u8,
},
Dcs {
macro_parameter: Option<u8>,
transparent_background: Option<u8>,
horizontal_pixel_distance: Option<usize>,
},
GotoBeginningOfLine,
GotoNextLine,
UnknownSequence([Option<u8>; 5]),
End,
}Variants§
ColorIntroducer
RasterAttribute
Data
Repeat
Dcs
Fields
GotoBeginningOfLine
GotoNextLine
UnknownSequence([Option<u8>; 5])
End
Implementations§
Source§impl SixelEvent
impl SixelEvent
pub fn new_dcs( macro_parameter: Option<u8>, transparent_background: Option<u8>, horizontal_pixel_distance: Option<usize>, ) -> SixelEvent
pub fn new_color_introducer( color_number: u16, coordinate_system_indicator: Option<u8>, x: Option<usize>, y: Option<usize>, z: Option<usize>, ) -> Result<SixelEvent, ParserError>
pub fn color_introducer_from_fields( pending_event_fields: &mut ArrayVec<ArrayVec<u8, 5>, 5>, ) -> Result<SixelEvent, ParserError>
pub fn new_raster( pan: usize, pad: usize, ph: Option<usize>, pv: Option<usize>, ) -> Result<SixelEvent, ParserError>
pub fn raster_attribute_from_fields( pending_event_fields: &mut ArrayVec<ArrayVec<u8, 5>, 5>, ) -> Result<SixelEvent, ParserError>
pub fn dcs_from_fields( pending_event_fields: &mut ArrayVec<ArrayVec<u8, 5>, 5>, ) -> Result<SixelEvent, ParserError>
pub fn new_repeat( repeat_count: usize, byte_to_repeat: u8, ) -> Result<SixelEvent, ParserError>
pub fn repeat_from_fields( pending_event_fields: &mut ArrayVec<ArrayVec<u8, 5>, 5>, byte_to_repeat: u8, ) -> Result<SixelEvent, ParserError>
Trait Implementations§
Source§impl Clone for SixelEvent
impl Clone for SixelEvent
Source§fn clone(&self) -> SixelEvent
fn clone(&self) -> SixelEvent
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 Debug for SixelEvent
impl Debug for SixelEvent
Source§impl PartialEq for SixelEvent
impl PartialEq for SixelEvent
impl Copy for SixelEvent
impl Eq for SixelEvent
impl StructuralPartialEq for SixelEvent
Auto Trait Implementations§
impl Freeze for SixelEvent
impl RefUnwindSafe for SixelEvent
impl Send for SixelEvent
impl Sync for SixelEvent
impl Unpin for SixelEvent
impl UnwindSafe for SixelEvent
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