diff options
author | 2023-05-11 15:25:58 +0200 | |
---|---|---|
committer | 2023-05-11 15:25:58 +0200 | |
commit | 8622e998f2701e7f4ca8d2f71c85150f436a9945 (patch) | |
tree | de62eead3db44002997b83849711533b214aae31 /graphics/src/image.rs | |
parent | dd04c0b070b60b15293892e2a7c284787d3d63b1 (diff) | |
download | iced-8622e998f2701e7f4ca8d2f71c85150f436a9945.tar.gz iced-8622e998f2701e7f4ca8d2f71c85150f436a9945.tar.bz2 iced-8622e998f2701e7f4ca8d2f71c85150f436a9945.zip |
Write missing documentation in `iced_graphics`
Diffstat (limited to 'graphics/src/image.rs')
-rw-r--r-- | graphics/src/image.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/graphics/src/image.rs b/graphics/src/image.rs index 2f634252..6b43f4a8 100644 --- a/graphics/src/image.rs +++ b/graphics/src/image.rs @@ -5,6 +5,7 @@ use bitflags::bitflags; pub use ::image as image_rs; +/// Tries to load an image by its [`Handle`]. pub fn load(handle: &Handle) -> image_rs::ImageResult<image_rs::DynamicImage> { match handle.data() { Data::Path(path) => { |