pub struct ImageView { /* private fields */ }
Expand description
an imageview can display an image in the terminal with a ratio of one pixel per char in width.
Implementations§
source§impl ImageView
impl ImageView
pub fn new(path: &Path) -> Result<Self, ProgramError>
pub fn is_png(&self) -> bool
pub fn display( &mut self, w: &mut W, disc: &DisplayContext<'_>, area: &Area ) -> Result<(), ProgramError>
pub fn display_info( &mut self, w: &mut W, _screen: Screen, panel_skin: &PanelSkin, area: &Area ) -> Result<(), ProgramError>
Auto Trait Implementations§
impl !RefUnwindSafe for ImageView
impl !Send for ImageView
impl !Sync for ImageView
impl Unpin for ImageView
impl !UnwindSafe for ImageView
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