// This file was generated by gir (https://github.com/gtk-rs/gir)
// from
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
use crate::ffi;
use glib::translate::*;
glib::wrapper! {
/// Data structure for holding a destination
///
/// Note that `named_dest` is the string representation of the named
/// destination. This is the right form to pass to poppler functions,
/// e.g. [`Document::find_dest()`][crate::Document::find_dest()], but to get the destination as
/// it appears in the PDF itself, you need to convert it to a bytestring
/// with [`named_dest_to_bytestring()`][crate::named_dest_to_bytestring()] first.
/// Also note that `named_dest` does not have a defined encoding and
/// is not in a form suitable to be displayed to the user.
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct Dest(Boxed<ffi::PopplerDest>);
match fn {
copy => |ptr| ffi::poppler_dest_copy(mut_override(ptr)),
free => |ptr| ffi::poppler_dest_free(ptr),
type_ => || ffi::poppler_dest_get_type(),
}
}