pub struct TranscoderBuilder { /* private fields */ }
Expand description
A builder struct to create various Transcoders
Implementations§
Source§impl TranscoderBuilder
impl TranscoderBuilder
Sourcepub fn build_raw(self) -> TranscoderRaw
pub fn build_raw(self) -> TranscoderRaw
Build a TranscoderRaw
Source§impl TranscoderBuilder
impl TranscoderBuilder
Sourcepub fn build_writer<W: Write>(self, writer: W) -> TranscoderWriter<W> ⓘ
pub fn build_writer<W: Write>(self, writer: W) -> TranscoderWriter<W> ⓘ
Build a TranscoderWriter
Source§impl TranscoderBuilder
impl TranscoderBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new TranscoderBuilder
.
Sourcepub fn from_encoding(self, encoding: &'static Encoding) -> Self
pub fn from_encoding(self, encoding: &'static Encoding) -> Self
Set the input encoding
Sourcepub fn to_encoding(self, encoding: &'static Encoding) -> Self
pub fn to_encoding(self, encoding: &'static Encoding) -> Self
Set the output encoding
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TranscoderBuilder
impl RefUnwindSafe for TranscoderBuilder
impl Send for TranscoderBuilder
impl Sync for TranscoderBuilder
impl Unpin for TranscoderBuilder
impl UnwindSafe for TranscoderBuilder
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