Struct gio::builders::CharsetConverterBuilder
source · 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