1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
use crate::action_private::internal::PdfActionPrivate;
use crate::bindgen::FPDF_ACTION;
use crate::bindings::PdfiumLibraryBindings;
pub struct PdfActionEmbeddedDestination<'a> {
handle: FPDF_ACTION,
bindings: &'a dyn PdfiumLibraryBindings,
}
impl<'a> PdfActionEmbeddedDestination<'a> {
#[inline]
pub(crate) fn from_pdfium(
handle: FPDF_ACTION,
bindings: &'a dyn PdfiumLibraryBindings,
) -> Self {
PdfActionEmbeddedDestination { handle, bindings }
}
}
impl<'a> PdfActionPrivate<'a> for PdfActionEmbeddedDestination<'a> {
#[inline]
fn handle(&self) -> &FPDF_ACTION {
&self.handle
}
#[inline]
fn bindings(&self) -> &dyn PdfiumLibraryBindings {
self.bindings
}
}