pub struct Image<'t> { /* private fields */ }Available on crate feature
kitty-graphics only.Expand description
Opaque reference to a Kitty graphics image.
Obtained via Graphics::image with an image ID. The reference is
borrowed from the storage with lifetime 't and remains valid until
the next mutating terminal call.
Implementations§
Source§impl<'t> Image<'t>
impl<'t> Image<'t>
Sourcepub fn format(&self) -> Result<ImageFormat>
pub fn format(&self) -> Result<ImageFormat>
Pixel format of the image.
Sourcepub fn compression(&self) -> Result<Compression>
pub fn compression(&self) -> Result<Compression>
Compression of the image.
Trait Implementations§
Auto Trait Implementations§
impl<'t> !Send for Image<'t>
impl<'t> !Sync for Image<'t>
impl<'t> Freeze for Image<'t>
impl<'t> RefUnwindSafe for Image<'t>
impl<'t> Unpin for Image<'t>
impl<'t> UnsafeUnpin for Image<'t>
impl<'t> UnwindSafe for Image<'t>
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