Derive Macro glib_macros::GErrorDomain [−][src]
#[derive(GErrorDomain)] { // Attributes available to this derive: #[gerror_domain] }
Expand description
Derive macro for defining a GLib error domain and its associated
ErrorDomain
trait.
Example
use glib::prelude::*; use glib::subclass::prelude::*; #[derive(Debug, Copy, Clone, glib::GErrorDomain)] #[gerror_domain(name = "ExFoo")] enum Foo { Blah, Baaz, }