pdfium-render 0.7.31

A high-level idiomatic Rust wrapper around Pdfium, the C++ PDF library used by the Google Chromium project.
Documentation
//! Defines the [PdfActionUnsupported] struct, exposing functionality related to a single
//! action of type `PdfActionType::Unsupported`.

use crate::action_private::internal::PdfActionPrivate;
use crate::bindgen::FPDF_ACTION;
use crate::bindings::PdfiumLibraryBindings;

pub struct PdfActionUnsupported<'a> {
    handle: FPDF_ACTION,
    bindings: &'a dyn PdfiumLibraryBindings,
}

impl<'a> PdfActionUnsupported<'a> {
    #[inline]
    pub(crate) fn from_pdfium(
        handle: FPDF_ACTION,
        bindings: &'a dyn PdfiumLibraryBindings,
    ) -> Self {
        PdfActionUnsupported { handle, bindings }
    }
}

impl<'a> PdfActionPrivate<'a> for PdfActionUnsupported<'a> {
    #[inline]
    fn handle(&self) -> &FPDF_ACTION {
        &self.handle
    }

    #[inline]
    fn bindings(&self) -> &dyn PdfiumLibraryBindings {
        self.bindings
    }
}