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.
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();
Formats the value using the given formatter. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. 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.
The type returned in the event of a conversion error.