pub struct ParallelPngEncoder { /* private fields */ }Expand description
Multi-threaded PNG encoder using rayon.
Implementations§
Source§impl ParallelPngEncoder
impl ParallelPngEncoder
Sourcepub const fn new(config: EncoderConfig) -> Self
pub const fn new(config: EncoderConfig) -> Self
Create a new parallel encoder.
Sourcepub fn encode_rgba(
&self,
width: u32,
height: u32,
data: &[u8],
) -> CodecResult<Vec<u8>>
pub fn encode_rgba( &self, width: u32, height: u32, data: &[u8], ) -> CodecResult<Vec<u8>>
Auto Trait Implementations§
impl Freeze for ParallelPngEncoder
impl RefUnwindSafe for ParallelPngEncoder
impl Send for ParallelPngEncoder
impl Sync for ParallelPngEncoder
impl Unpin for ParallelPngEncoder
impl UnsafeUnpin for ParallelPngEncoder
impl UnwindSafe for ParallelPngEncoder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more