glib 0.3.1

Rust bindings for the GLib library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use DateTime;
use ffi;
use translate::*;

impl DateTime {
    pub fn compare(&self, other: &Self) -> i32 {
        unsafe {ffi::g_date_time_compare(self.to_glib_none().0 as *const _, other.to_glib_none().0 as *const _) }
    }

    pub fn equal(&self, other: &Self) -> bool {
        unsafe { from_glib(ffi::g_date_time_equal(self.to_glib_none().0 as *const _, other.to_glib_none().0 as *const _)) }
    }
}