glib::translate

Trait TransparentType

Source
pub unsafe trait TransparentType: Clone + Sized {
    type GlibType;
}
Expand description

Trait for types that have the same memory representation as their FFI type.

Values of types implementing this trait can be transmuted directly to the FFI type, references to pointers to the FFI type.

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl TransparentType for char

Source§

impl TransparentType for f32

Source§

impl TransparentType for f64

Source§

impl TransparentType for i8

Source§

impl TransparentType for i16

Source§

impl TransparentType for i32

Source§

impl TransparentType for i64

Source§

impl TransparentType for u8

Source§

impl TransparentType for u16

Source§

impl TransparentType for u32

Source§

impl TransparentType for u64

Implementors§