Struct image::jpeg::JPEGEncoder
source · pub struct JPEGEncoder<'a, W: 'a> { /* private fields */ }
Expand description
The representation of a JPEG encoder
Implementations
sourceimpl<'a, W: Write> JPEGEncoder<'a, W>
impl<'a, W: Write> JPEGEncoder<'a, W>
sourcepub fn new(w: &mut W) -> JPEGEncoder<'_, W>
pub fn new(w: &mut W) -> JPEGEncoder<'_, W>
Create a new encoder that writes its output to w
sourcepub fn new_with_quality(w: &mut W, quality: u8) -> JPEGEncoder<'_, W>
pub fn new_with_quality(w: &mut W, quality: u8) -> JPEGEncoder<'_, W>
Create a new encoder that writes its output to w
, and has
the quality parameter quality
with a value in the range 1-100
where 1 is the worst and 100 is the best.
Auto Trait Implementations
impl<'a, W> RefUnwindSafe for JPEGEncoder<'a, W>where
W: RefUnwindSafe,
impl<'a, W> Send for JPEGEncoder<'a, W>where
W: Send,
impl<'a, W> Sync for JPEGEncoder<'a, W>where
W: Sync,
impl<'a, W> Unpin for JPEGEncoder<'a, W>
impl<'a, W> !UnwindSafe for JPEGEncoder<'a, W>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more