pub struct SixelDeserializer { /* private fields */ }Implementations§
Source§impl SixelDeserializer
impl SixelDeserializer
pub fn new() -> Self
Sourcepub fn max_height(self, max_height: usize) -> Self
pub fn max_height(self, max_height: usize) -> Self
Provide a max_height value in pixels, all pixels beyond this max height will not be
parsed
Sourcepub fn create_image(&mut self) -> Result<SixelImage, &'static str>
pub fn create_image(&mut self) -> Result<SixelImage, &'static str>
Create a new SixelImage out of the existing state and consume it.
Sourcepub fn handle_event(&mut self, event: SixelEvent) -> Result<(), &'static str>
pub fn handle_event(&mut self, event: SixelEvent) -> Result<(), &'static str>
Handle a SixelEvent, changing the internal state to match
Trait Implementations§
Source§impl Clone for SixelDeserializer
impl Clone for SixelDeserializer
Source§fn clone(&self) -> SixelDeserializer
fn clone(&self) -> SixelDeserializer
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 moreAuto Trait Implementations§
impl Freeze for SixelDeserializer
impl RefUnwindSafe for SixelDeserializer
impl Send for SixelDeserializer
impl Sync for SixelDeserializer
impl Unpin for SixelDeserializer
impl UnwindSafe for SixelDeserializer
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