Struct popsicle::Image [] [src]

pub struct Image { /* fields omitted */ }

A simple wrapper around a File that ensures that the file is a file, and obtains the file's size ahead of time.


impl Image


Opens the file and obtains the size from the metadata, then returns an Image structure that contains the opened file and its file size.



Returns the size of the file, in bytes.


Reads the image into a vector, and reports progress to a callback.

Trait Implementations

Auto Trait Implementations

impl Send for Image

impl Sync for Image