Trait gio::prelude::ConverterExt

source ·
pub trait ConverterExt: IsA<Converter> + Sealed + 'static {
    // Provided methods
    fn convert_bytes(&self, bytes: &Bytes) -> Result<Bytes, Error> { ... }
    fn reset(&self) { ... }
Expand description

Trait containing all Converter methods.


CharsetConverter, Converter, ZlibCompressor, ZlibDecompressor

Provided Methods§


fn convert_bytes(&self, bytes: &Bytes) -> Result<Bytes, Error>

Available on crate feature v2_82 only.

Applies @self to the data in @bytes.


the data to convert


A newly-allocated GBytes with the converted data, or NULL if an error occurred


fn reset(&self)

Resets all internal state in the converter, making it behave as if it was just created. If the converter has any internal state that would produce output then that output is lost.

Object Safety§

This trait is not object safe.