pub struct DefaultWriter { /* private fields */ }
Implementations§
Source§impl DefaultWriter
impl DefaultWriter
pub fn from_image(image: PngImage) -> Result<Self>where
Self: Sized,
pub fn set_compression(self, enabled: bool) -> Self
pub fn to_container(self) -> PngImage
Trait Implementations§
Source§impl Clone for DefaultWriter
impl Clone for DefaultWriter
Source§fn clone(&self) -> DefaultWriter
fn clone(&self) -> DefaultWriter
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DefaultWriter
impl Debug for DefaultWriter
Auto Trait Implementations§
impl Freeze for DefaultWriter
impl RefUnwindSafe for DefaultWriter
impl Send for DefaultWriter
impl Sync for DefaultWriter
impl Unpin for DefaultWriter
impl UnwindSafe for DefaultWriter
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