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§

Implementations on Foreign Types§

source§

impl TransparentType for u8

§

type GlibType = u8

source§

impl TransparentType for i16

source§

impl TransparentType for u64

source§

impl TransparentType for i32

source§

impl TransparentType for u32

source§

impl TransparentType for f32

source§

impl TransparentType for u16

source§

impl TransparentType for f64

source§

impl TransparentType for i64

source§

impl TransparentType for char

source§

impl TransparentType for i8

§

type GlibType = i8

Implementors§