pub struct CharsetConverterBuilder { /* private fields */ }Expand description
A builder-pattern type to construct CharsetConverter objects.
Implementations§
Source§impl CharsetConverterBuilder
impl CharsetConverterBuilder
Sourcepub fn from_charset(self, from_charset: impl Into<GString>) -> Self
pub fn from_charset(self, from_charset: impl Into<GString>) -> Self
The character encoding to convert from.
Sourcepub fn to_charset(self, to_charset: impl Into<GString>) -> Self
pub fn to_charset(self, to_charset: impl Into<GString>) -> Self
The character encoding to convert to.
Sourcepub fn use_fallback(self, use_fallback: bool) -> Self
pub fn use_fallback(self, use_fallback: bool) -> Self
Use fallback (of form \<hexval>) for invalid bytes.
Sourcepub fn build(self) -> CharsetConverter
pub fn build(self) -> CharsetConverter
Build the CharsetConverter.