pub struct Source { /* private fields */ }Implementations§
source§impl Source
impl Source
sourcepub fn resize(self, resize: Resize) -> Result<Self, TinifyError>
pub fn resize(self, resize: Resize) -> Result<Self, TinifyError>
Resize the current compressed image.
sourcepub fn convert(self, convert: Convert) -> Result<Self, TinifyError>
pub fn convert(self, convert: Convert) -> Result<Self, TinifyError>
Convert the current compressed image.
sourcepub fn transform(self, transform: Transform) -> Result<Self, TinifyError>
pub fn transform(self, transform: Transform) -> Result<Self, TinifyError>
Transform the current compressed image.
sourcepub fn to_file<P>(&mut self, path: P) -> Result<(), TinifyError>
pub fn to_file<P>(&mut self, path: P) -> Result<(), TinifyError>
Save the current compressed image to a file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Source
impl !RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl !UnwindSafe for Source
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