pub struct PdfOutline { /* private fields */ }Expand description
Wraps PDFOutline.
Implementations§
Source§impl PdfOutline
impl PdfOutline
Sourcepub fn set_label(&self, value: Option<&str>) -> Result<()>
pub fn set_label(&self, value: Option<&str>) -> Result<()>
Wraps the corresponding PDFOutline API.
Sourcepub fn child_count(&self) -> usize
pub fn child_count(&self) -> usize
Wraps the corresponding PDFOutline API.
Sourcepub fn insert_child(&self, child: &Self, index: usize) -> Result<()>
pub fn insert_child(&self, child: &Self, index: usize) -> Result<()>
Wraps the corresponding PDFOutline API.
Sourcepub fn remove_from_parent(&self)
pub fn remove_from_parent(&self)
Wraps the corresponding PDFOutline API.
Sourcepub fn destination(&self) -> Option<PdfDestination>
pub fn destination(&self) -> Option<PdfDestination>
Wraps the corresponding PDFOutline API.
Sourcepub fn set_destination(
&self,
destination: Option<&PdfDestination>,
) -> Result<()>
pub fn set_destination( &self, destination: Option<&PdfDestination>, ) -> Result<()>
Wraps the corresponding PDFOutline API.
Sourcepub fn set_action<A: PdfActionLike>(&self, action: Option<&A>) -> Result<()>
pub fn set_action<A: PdfActionLike>(&self, action: Option<&A>) -> Result<()>
Wraps the corresponding PDFOutline API.
Sourcepub fn clear_action(&self) -> Result<()>
pub fn clear_action(&self) -> Result<()>
Wraps the corresponding PDFOutline API.
Sourcepub fn action_url(&self) -> Option<PdfActionUrl>
pub fn action_url(&self) -> Option<PdfActionUrl>
Wraps the corresponding PDFOutline API.
Sourcepub fn set_action_url(&self, action: Option<&PdfActionUrl>) -> Result<()>
pub fn set_action_url(&self, action: Option<&PdfActionUrl>) -> Result<()>
Wraps the corresponding PDFOutline API.
Sourcepub fn action_goto(&self) -> Option<PdfActionGoTo>
pub fn action_goto(&self) -> Option<PdfActionGoTo>
Wraps the corresponding PDFOutline API.
Sourcepub fn set_action_goto(&self, action: Option<&PdfActionGoTo>) -> Result<()>
pub fn set_action_goto(&self, action: Option<&PdfActionGoTo>) -> Result<()>
Wraps the corresponding PDFOutline API.
Trait Implementations§
Source§impl Clone for PdfOutline
impl Clone for PdfOutline
Source§fn clone(&self) -> PdfOutline
fn clone(&self) -> PdfOutline
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PdfOutline
impl RefUnwindSafe for PdfOutline
impl !Send for PdfOutline
impl !Sync for PdfOutline
impl Unpin for PdfOutline
impl UnsafeUnpin for PdfOutline
impl UnwindSafe for PdfOutline
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more