pub struct Overlay { /* private fields */ }Expand description
One image for Image::composite_overlays, with sharp’s per-image
options: blend, gravity, left/top and tile.
Implementations§
Source§impl Overlay
impl Overlay
Sourcepub const fn with_blend(self, blend: Blend) -> Self
pub const fn with_blend(self, blend: Blend) -> Self
Combine it with the image below by blend.
Sourcepub const fn with_gravity(self, gravity: Position) -> Self
pub const fn with_gravity(self, gravity: Position) -> Self
Place it against an edge, a corner or the middle (sharp’s gravity).
An offset given with Overlay::at takes precedence, as in sharp.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Overlay
impl !UnwindSafe for Overlay
impl Freeze for Overlay
impl Send for Overlay
impl Sync for Overlay
impl Unpin for Overlay
impl UnsafeUnpin for Overlay
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