pub enum ImageHint {
Default,
Picture,
Photo,
Graph,
}Expand description
A hint about the content that the lossless encoder uses
(C: WebPImageHint).
§Examples
use webp::api::encode::{Config, ImageHint};
let config = Config::new().lossless(true).image_hint(ImageHint::Graph);
assert_eq!(config.as_raw().image_hint.0, 3);Variants§
Default
No hint (C: WEBP_HINT_DEFAULT).
Picture
A digital picture, such as a portrait or an indoor shot
(C: WEBP_HINT_PICTURE).
Photo
An outdoor photograph with natural lighting (C: WEBP_HINT_PHOTO).
Graph
A discrete-tone image such as a graph or map (C: WEBP_HINT_GRAPH).
Trait Implementations§
impl Copy for ImageHint
impl Eq for ImageHint
impl StructuralPartialEq for ImageHint
Auto Trait Implementations§
impl Forget for ImageHint
impl Freeze for ImageHint
impl Move for ImageHint
impl RefUnwindSafe for ImageHint
impl Send for ImageHint
impl Sync for ImageHint
impl Unpin for ImageHint
impl UnsafeUnpin for ImageHint
impl UnwindSafe for ImageHint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more