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
.
Auto Trait Implementations§
impl Freeze for CharsetConverterBuilder
impl RefUnwindSafe for CharsetConverterBuilder
impl !Send for CharsetConverterBuilder
impl !Sync for CharsetConverterBuilder
impl Unpin for CharsetConverterBuilder
impl UnwindSafe for CharsetConverterBuilder
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