Crate gtypes [−] [src]
This crate provides definitions for types that are intrinsic in GObject introspection, unlike all other types that have a definition in a GIR file. All crates generated from GObject introspection data should use these shared definitions, usable in FFI declarations as well as in idiomatic Rust bindings.
Some types are omitted because a suitable equivalent is readily available in Rust:
- Fixed-size integer types. These have straightforward built-in counterparts in Rust.
- Strings can have GI types
utf8
orfilename
. In the FFI all string values are represented as raw pointers togchar
. A safe representation of C strings in idiomatic Rust bindings needs some wrapper types which are not defined here.
Constants
FALSE | |
TRUE |
Type Definitions
GType | |
gboolean | |
gchar | |
gconstpointer | |
gdouble | |
gfloat | |
gint | |
gintptr | |
glong | |
gpointer | |
gshort | |
gsize | |
gssize | |
guchar | |
guint | |
guintptr | |
gulong | |
gunichar | |
gushort |