glib::types

Type Alias Pointee

Source
pub type Pointee = c_void;
Expand description

The target of a Pointer

§Examples

use glib::prelude::*;
use glib::types::{Pointee, Pointer};
use std::ptr::NonNull;

let pointer = NonNull::<Pointee>::dangling();
let value = pointer.to_value();
assert!(value.is::<Pointer>());
assert_eq!(value.get(), Ok(pointer.as_ptr()));

Aliased Type§

enum Pointee {}

Variants§

Trait Implementations

1.16.0 · Source§

impl Debug for c_void

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more