Struct encoding_rs_transcode::TranscoderBuilder
source · 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