pub struct PdfPageReference {
    pub document: Weak<RefCell<PdfDocument>>,
    pub page: PdfPageIndex,
}
Expand description

A “reference” to the current page, allows for inner mutability but only inside this library

Fields§

§document: Weak<RefCell<PdfDocument>>

A weak reference to the document, for inner mutability

§page: PdfPageIndex

The index of the page this layer is on

Implementations§

Adds a page and returns the index of the currently added page

Validates that a layer is present and returns a reference to it

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Sets value as a parameter of self.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.