pub struct EncoderBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> EncoderBuilder<'a>
impl<'a> EncoderBuilder<'a>
Sourcepub fn new(
data: &'a (impl AsRef<[u8]> + ?Sized),
width: u32,
height: u32,
) -> Self
pub fn new( data: &'a (impl AsRef<[u8]> + ?Sized), width: u32, height: u32, ) -> Self
Creates a new encoder builder from a given array of pixel data and image dimensions.
Sourcepub const fn raw_channels(self, raw_channels: RawChannels) -> Self
pub const fn raw_channels(self, raw_channels: RawChannels) -> Self
Set the input format of the pixel data.
Sourcepub const fn colorspace(self, colorspace: ColorSpace) -> Self
pub const fn colorspace(self, colorspace: ColorSpace) -> Self
Set the colorspace.
Auto Trait Implementations§
impl<'a> Freeze for EncoderBuilder<'a>
impl<'a> RefUnwindSafe for EncoderBuilder<'a>
impl<'a> Send for EncoderBuilder<'a>
impl<'a> Sync for EncoderBuilder<'a>
impl<'a> Unpin for EncoderBuilder<'a>
impl<'a> UnwindSafe for EncoderBuilder<'a>
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