#[repr(C)]pub struct _GConverterIface {
pub g_iface: GTypeInterface,
pub convert: Option<unsafe extern "C" fn(converter: *mut GConverter, inbuf: *const c_void, inbuf_size: gsize, outbuf: *mut c_void, outbuf_size: gsize, flags: GConverterFlags, bytes_read: *mut gsize, bytes_written: *mut gsize, error: *mut *mut GError) -> GConverterResult>,
pub reset: Option<unsafe extern "C" fn(converter: *mut GConverter)>,
}
Expand description
GConverterIface: @g_iface: The parent interface. @convert: Converts data. @reset: Reverts the internal state of the converter to its initial state.
Provides an interface for converting data from one type to another type. The conversion can be stateful and may fail at any place.
Since: 2.24
Fields§
§g_iface: GTypeInterface
§convert: Option<unsafe extern "C" fn(converter: *mut GConverter, inbuf: *const c_void, inbuf_size: gsize, outbuf: *mut c_void, outbuf_size: gsize, flags: GConverterFlags, bytes_read: *mut gsize, bytes_written: *mut gsize, error: *mut *mut GError) -> GConverterResult>
§reset: Option<unsafe extern "C" fn(converter: *mut GConverter)>
Trait Implementations§
Source§impl Clone for _GConverterIface
impl Clone for _GConverterIface
Source§fn clone(&self) -> _GConverterIface
fn clone(&self) -> _GConverterIface
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for _GConverterIface
impl Debug for _GConverterIface
Source§impl PartialEq for _GConverterIface
impl PartialEq for _GConverterIface
impl Copy for _GConverterIface
impl Eq for _GConverterIface
impl StructuralPartialEq for _GConverterIface
Auto Trait Implementations§
impl Freeze for _GConverterIface
impl RefUnwindSafe for _GConverterIface
impl Send for _GConverterIface
impl Sync for _GConverterIface
impl Unpin for _GConverterIface
impl UnwindSafe for _GConverterIface
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