pub struct PdfFormFieldOptions<'a> { /* private fields */ }Expand description
A collection of all selectable options in a list box or check box form field widget.
Implementations§
source§impl<'a> PdfFormFieldOptions<'a>
impl<'a> PdfFormFieldOptions<'a>
sourcepub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
pub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
Returns the PdfiumLibraryBindings used by this PdfFormFieldOptions collection.
sourcepub fn len(&self) -> PdfFormFieldOptionIndex
pub fn len(&self) -> PdfFormFieldOptionIndex
Returns the number of options in this PdfFormFieldOptions collection.
sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true if this PdfFormFieldOptions collection is empty.
sourcepub fn as_range(&self) -> Range<PdfFormFieldOptionIndex>
pub fn as_range(&self) -> Range<PdfFormFieldOptionIndex>
Returns a Range from 0..(number of options) for this PdfFormFieldOptions collection.
sourcepub fn as_range_inclusive(&self) -> RangeInclusive<PdfFormFieldOptionIndex>
pub fn as_range_inclusive(&self) -> RangeInclusive<PdfFormFieldOptionIndex>
Returns an inclusive Range from 0..=(number of options - 1) for this
PdfFormFieldOptions collection.
sourcepub fn get(
&self,
index: PdfFormFieldOptionIndex
) -> Result<PdfFormFieldOption, PdfiumError>
pub fn get( &self, index: PdfFormFieldOptionIndex ) -> Result<PdfFormFieldOption, PdfiumError>
Returns a single PdfFormFieldOption from this PdfFormFieldOptions collection.
sourcepub fn iter(&self) -> PdfFormFieldOptionsIterator<'_> ⓘ
pub fn iter(&self) -> PdfFormFieldOptionsIterator<'_> ⓘ
Returns an iterator over all the options in this PdfFormFieldOptions collection.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PdfFormFieldOptions<'a>
impl<'a> !Send for PdfFormFieldOptions<'a>
impl<'a> !Sync for PdfFormFieldOptions<'a>
impl<'a> Unpin for PdfFormFieldOptions<'a>
impl<'a> !UnwindSafe for PdfFormFieldOptions<'a>
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