Struct html5_picture::html5::PictureRegister[][src]

pub struct PictureRegister { /* fields omitted */ }
Expand description

Contains a HashMap with all required details of the images to create an according picture tag. The image details are loaded into memory to be able to retrieve them as fast as possible. The install_images_into parameter is used to determine which images can be used.

Implementations

Creates a new instance from the given config.

Returns a reference to the Picture instance of the given image. Please use the original filename of the picture that you want to use, for example:

let p = register_instance.get(&PathBuf::from("assets/image-1.png")).unwrap();

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.