pub struct ActionChain {
pub action: Action,
pub next: Vec<ActionChain>,
}Expand description
An action with optional sub-actions chained via /Next.
Fields§
§action: ActionThe action itself.
next: Vec<ActionChain>Sub-actions from the /Next key.
Implementations§
Source§impl ActionChain
impl ActionChain
Sourcepub fn sub_action_count(&self) -> usize
pub fn sub_action_count(&self) -> usize
Returns the number of sub-actions chained via /Next.
Corresponds to CPDF_Action::GetSubActionsCount() in PDFium.
Sourcepub fn get_sub_actions_count(&self) -> usize
pub fn get_sub_actions_count(&self) -> usize
ADR-019 alias for sub_action_count().
Corresponds to CPDF_Action::GetSubActionsCount() in PDFium.
Sourcepub fn sub_action(&self, index: usize) -> Option<&ActionChain>
pub fn sub_action(&self, index: usize) -> Option<&ActionChain>
Returns the sub-action at the given zero-based index, or None if
the index is out of bounds.
Corresponds to CPDF_Action::GetSubAction(size_t index) in PDFium.
Sourcepub fn get_sub_action(&self, index: usize) -> Option<&ActionChain>
pub fn get_sub_action(&self, index: usize) -> Option<&ActionChain>
ADR-019 alias for sub_action().
Corresponds to CPDF_Action::GetSubAction(size_t index) in PDFium.
Trait Implementations§
Source§impl Clone for ActionChain
impl Clone for ActionChain
Source§fn clone(&self) -> ActionChain
fn clone(&self) -> ActionChain
Returns a duplicate of the value. Read more
1.0.0 · 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 ActionChain
impl RefUnwindSafe for ActionChain
impl Send for ActionChain
impl Sync for ActionChain
impl Unpin for ActionChain
impl UnsafeUnpin for ActionChain
impl UnwindSafe for ActionChain
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