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.

Methods

impl Image
[src]

[src]

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

[src]

[src]

Returns the size of the file, in bytes.

[src]

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